Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onMounted hook called twice during pageTransition with out-in mode #27442

Open
alekseyf opened this issue Jun 4, 2024 · 1 comment
Open

onMounted hook called twice during pageTransition with out-in mode #27442

alekseyf opened this issue Jun 4, 2024 · 1 comment

Comments

@alekseyf
Copy link

alekseyf commented Jun 4, 2024

Environment

  • Operating System: Darwin
  • Node Version: v20.9.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: pnpm@8.10.5
  • Builder: -
  • User Config: devtools, app
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/nuxt-transition-out-in-bug

Describe the bug

When navigating from the Home page to the Test page, the onMounted hook on the Test page is triggered twice. This behavior occurs only when the pageTransition mode is set to out-in in the Nuxt configuration and the Test page contains await useAsyncData.

Additional context

No response

Logs

No response

Copy link

stackblitz bot commented Jun 4, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@alekseyf alekseyf changed the title onMounted Hook Called Twice During Page Transition with out-in Mode onMounted hook called twice during pageTransition with out-in mode Jun 4, 2024
@danielroe danielroe removed the 3.x label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants