Hydration mismatch warning when login state changes #11035
Unanswered
jarkt
asked this question in
Help/Questions
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 get some warnings about hydration mismatches under special circumstances.
/protectedResource
, gets a HTTP 401 and sees the login form/protectedResource
💥At this point the hydration mismatch warning appears, because the route is now rendering the protected resource instead of the login form.
Everything works fine and the warning is expected under these circumstances. What can I do to get rid of the warnings?
I'm wondering why the check doesn't just run once after the initial page load.
Beta Was this translation helpful? Give feedback.
All reactions