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
notdevkey10mo ago
do the children render even if the Navbar doesn't?
machina
machina10mo ago
yes @notdevkey in the other two attached images, you can see the before and after refreshing also read your blog, good stuff
notdevkey
notdevkey10mo ago
hmm thats weird, can u show your navbar component? thanks ❤️
machina
machina10mo ago
No description
notdevkey
notdevkey10mo 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
machina10mo ago
identical behavior @notdevkey
Want results from more Discord servers?
Add your server
More Posts
UploadThing spamming terminal with: "dev server is now running"I am using the uploadthing useUploadThing hook in my NextJS project. The hook runs every time a modaNext Auth middleware redirects me to the login page, even if there's a sessionI am busting my head around this thing. I tried to setup NextJS with NextAuth, Drizzle and PlanetScaReact components not rendering in mdx (contentlayer)Attached is my MDX file and a screenshot of it rendering on the page. How can I import and use compTRPC / Prisma findMany not showing properties in auto completionIve been pulling my hair out for the last hour and cannot seem to find whats happening. In my TRPC rUse trpc on nextJS api route?Is there a way that you can use trpc on a nextJS api route?how to remove all current data from planetscale main branch?I made a breaking change and need to reset the main branch in order to deploy it, how to do it?Modern Desktop App FrameworkHey guys, I haven't made a desktop app in a really long time, and I was curious what your guys opinishadcn/ui DropdownMenu component not working with AstroI followed exactly the instructions from [this page](https://ui.shadcn.com/docs/installation/astro) How to validate the media url returned from clients when using uploadthing?Client uploads file(s), receives media url(s), sends them to the server , server stores them in dataGatsby Could Shutdown, what are best alternative.Hey everyone, as you probably know Gatsby Cloud is shutting down. At our company we have a couple of