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

Incorrect mounted and unmounted lifecycle hooks order #13879

Closed
nndnha opened this issue May 1, 2022 · 1 comment
Closed

Incorrect mounted and unmounted lifecycle hooks order #13879

nndnha opened this issue May 1, 2022 · 1 comment

Comments

@nndnha
Copy link

nndnha commented May 1, 2022

Environment


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.1
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-yk2a57?file=app.vue

Describe the bug

Navigate the page from Home -> About it shows us that About's mounted hook be called before Home's unmounted hook. This behavior is opposite to Vue pure app where Home's unmounted hook will be called before About's mounted hook!

https://stackblitz.com/edit/vue3-vue-router-demo-bbyxbs?file=src%2FApp.vue

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

Likely the same cause as #13471. Let's track there...

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
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