Replies: 1 comment
-
As noted in this discussion, I think my problem is solved by using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using MSAL, which is a client-side authentication package for Azure Active Directory. It does not work on the server, so in my root.jsx file, I need to gate the authentication with
if(!isServer){
.This is causing a hydration mismatch when the client is able to pull the authentication status from cache, because in server render,
auth().isAuthenticated
is false, but by the time this component is hydrated, it is true.Is there an idiomatic way to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions