Skip to content

onLeave in page transition breaks onUnmounted in pages #26743

Description

@tetz2442

Environment

  • Operating System: Windows_NT
  • Node Version: v20.11.1
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: yarn@1.22.22
  • Builder: -
  • User Config: devtools, runtimeConfig, vite, modules, image, css, svgSprite, colorMode
  • Runtime Modules: @vueuse/nuxt@10.9.0, @nuxt/image@1.5.0, @nuxtjs/color-mode@3.3.3, @nuxtjs/svg-sprite@1.0.2, @nuxtjs/strapi@1.12.0, @pinia/nuxt@0.5.1
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-1j8bob?file=pages%2Findex.vue

Describe the bug

I'm trying to add JavaScript based page transitions to my nuxt 3 app. As soon as you set the onLeave callback in the page transition, onUnmounted hooks no longer work. This even applies to composables that are used within a page component.

Additional context

No response

Logs

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions