Skip to content

Changing layout with a pageTransition and some async logic breaks the layout #25685

@Predota

Description

@Predota

Environment


  • Operating System: Linux
  • Node Version: v18.18.0
  • Nuxt Version: 3.10.1
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: npm@10.2.3
  • Builder: -
  • User Config: devtools, app
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-psf3p3

Describe the bug

When navigating between two routes with different layouts, if a pageTransition is set in the Nuxt config and one of the page has a some async logic, the slot of the layout will not be rendered where it is supposed to be.

In my reproduction, the content of the page is rendering after the footer. It might take several back and forth between the homepage and the about page to get the bug.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions