Replies: 1 comment 2 replies
-
https://nextjs.org/docs/app/api-reference/file-conventions/layout |
Beta Was this translation helpful? Give feedback.
2 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
This is currently the code:
//layout.tsx

I used to pass the session to the nav and UserModal as a prop, and it worked properly (since props respond to direct changes in the parent), but then i started using
useSession()
hook, and with that, when I login into the app, and the session does update (I can see that by logging the session in the route) the session inside the nav and the modal doesn't.What are the possible solutions for this?
Beta Was this translation helpful? Give feedback.
All reactions