SSR with dynamic options
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
I have a product page. I want it to be rendered server side (SSR). However there are a few parts of the page that I want to render differently if the creator of the product is logged in.
For example item description. 99 percent of the time it just the description but if the creator is logged in it should show a few buttons to edit the description.
Now the entire product page is wrapped in a context provider for the product info. So I think this means i cant really use SSR here as the context uses state and other stuff. So maybe that was not the correct solution. I did this so all these dynamic components that will show only for the creator can share the same product data.
What I'd like is the basic product page to be rendered with SSR and then if the user is the creator dynamic alternative components can be rendered.
how can I achieve this? while keeping the basic product page fully server side rendered
For example item description. 99 percent of the time it just the description but if the creator is logged in it should show a few buttons to edit the description.
Now the entire product page is wrapped in a context provider for the product info. So I think this means i cant really use SSR here as the context uses state and other stuff. So maybe that was not the correct solution. I did this so all these dynamic components that will show only for the creator can share the same product data.
What I'd like is the basic product page to be rendered with SSR and then if the user is the creator dynamic alternative components can be rendered.
how can I achieve this? while keeping the basic product page fully server side rendered