You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Hydration failed because the initial UI does not match what was rendered on the server. Warning: Expected server HTML to contain a matching <p> in <svg>. Error: There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering.
#31
Open
bibekrawat2020 opened this issue
Dec 16, 2023
· 1 comment
well since he used server component for the navbar so you can't use useEffect to solve this issue
one way to do that would be taking everything from the navbar and create a new component, pass session over there as a prop and in the old navbar component use useEffect to remove the warning
or you can use supressHydrationError (idk why it's not working for react 18+) 😞
When I add in Navbar.tsx by following video from youtube and start local server there occurs 3 errors:
The error above occurs.
The text was updated successfully, but these errors were encountered: