What is the best approach for rendering static & dynamic content? #10774
Unanswered
juliuslipp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following (quite common) szenario, on our page, we have a blog, docs and marketing pages, which can all be prerendered, because they don't change. Our header on the other side always renders (similar to github) the user-icon on the left top side, if the user is logged-in. If I prerender the page, the layout (which I marked as prerender=false and contains the site-header) server function doesn't run anymore, hence I can't render the user. I could just fetch the user client-side, but was hoping there is an option to render a single component on the server at all times, while the rest could be static.
Beta Was this translation helpful? Give feedback.
All reactions