Next seems to not be respecting the layout.tsx

Attached is my layout.tsx in the root of the app directory. However When I navigate to subpages, sometimes the navbar (which in the layout.tsx) isn't there, (until I refresh the page). Also, when I navigate back up to the home page via links, the header is also gone in the home page. Why might this be the case where I have to refresh the page for the Navbar in the layout.tsx to appear?
No description
No description
No description
6 Replies
notdevkey
notdevkey13mo ago
do the children render even if the Navbar doesn't?
machina
machina13mo ago
yes @notdevkey in the other two attached images, you can see the before and after refreshing also read your blog, good stuff
notdevkey
notdevkey13mo ago
hmm thats weird, can u show your navbar component? thanks ❤️
machina
machina13mo ago
No description
notdevkey
notdevkey13mo ago
hard to tell whats wrong, ima get back to u when i get home, this is an interesting one what if you remove the "use client" from navbar?
machina
machina12mo ago
identical behavior @notdevkey
Want results from more Discord servers?
Add your server