Code Monkey home page Code Monkey logo

Comments (5)

mehrdad-shokri avatar mehrdad-shokri commented on September 23, 2024

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.

mehrdad-shokri avatar mehrdad-shokri commented on September 23, 2024

Checked with 14.3.0-canary.70 and still exists

from next.js.

AhmedBaset avatar AhmedBaset commented on September 23, 2024

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.

mehrdad-shokri avatar mehrdad-shokri commented on September 23, 2024

You are right, that was my misunderstanding of layouts and pages structure. thank you so much for clarifying.

from next.js.

github-actions avatar github-actions commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.