SSG and logged-in state (cleanly replace DOM client-side) #13257
Unanswered
patricktyndall
asked this question in
Help
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.
-
Hi all,
I have a site composed of the following:
In the past, I've run into strange behaviors when server-rendered DOM doesn't match the client-rendered DOM (seems like the trees get merged somehow).
However, I want to SSG my product pages and also have them accessible logged-in. What's the best-practice way to SSG the page with the logged-out state, then replace it client-side with the correct state without doing any sort of diffing?
(I realize this will cause render flash, but seems like the only way).
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions