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?
6 Replies
do the
children
render even if the Navbar doesn't?yes
@notdevkey
in the other two attached images, you can see the before and after refreshing
also read your blog, good stuff
hmm thats weird, can u show your navbar component?
thanks ❤️
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?
identical behavior
@notdevkey