Comments (5)
Also please note, the layout rerenders even if the layout is 'use server', confirmed it with a console.log
in the layout component.
from next.js.
Checked with 14.3.0-canary.70 and still exists
from next.js.
The shared reproduction is working as intended and doesn't have a bug.
In your case, app/[dashboard]/layout.tsx
should be remounted with every navigation because you're navigating between /billing
, /usage
, and /settings
. Each of these updates the [dashboard]
segment. There is no shared layout in this case. It would be a bug if your structure was /app/dashboard/layout.tsx
and /app/dashboard/[param]/page.tsx
, and dashboard/layout.tsx
was remounted when navigating between /dashboard/1
and /dashboard/2
because /dashboard/layout.tsx
is a shared layout in this case.
from next.js.
You are right, that was my misunderstanding of layouts and pages structure. thank you so much for clarifying.
from next.js.
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
from next.js.
Related Issues (20)
- NoFallbackError on 404 routes with pages router and middleware. HOT 1
- Docs: The docs say Next.JS 14 supports experimental PPR but anecdotal evidence says otherwise HOT 2
- Debugging issue with Error Code SIGLL HOT 1
- Version info in error page shows different font sizes
- Debugging issue with Error Code SIGLL
- @next/swc-android-arm64 on build error HOT 1
- Server action in 18.2.6 vs 18.2.8 is not longer able to import server action in client component HOT 6
- With the `experimental-https` and `-H` options, the next dev will show a different URL
- Docs: Improve scripts
- Docs: NextImage document for png file
- Failed to find action after updating to `[email protected]` HOT 2
- next/link sometimes does not update the page when used in dynamic page with replace and query parameters in v15 HOT 5
- Dockerfile example is not working HOT 1
- Wrong `error.tsx` matched using both parallel and dynamic routes
- SyntaxError with Middle Dot (U+30FB) as Object Key in Older iOS Safari Versions
- Standalone Output doesn't work with PNPM HOT 7
- Trying to load a browser-only module on non-browser environment HOT 2
- Nextjs includes all client components in the bundle when at least one client component is rendered from a server component (app-folder) HOT 9
- Localized Sitemap Not Generating Proper XML Format HOT 1
- `fetch` having a different behavior on Vercel with input request HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.