Skip to content

hook onMounted has been called when app unmount #11037

Open
@kkagura

Description

@kkagura

Vue version

3.4.21

Link to minimal reproduction

https://github.com/kkagura/test-unmount

Steps to reproduce

  1. open /page1 and click the button to go to /page2
  2. click button to unmount app

What is expected?

hook onMounted in Page2.vue should not be called when app unmount

What is actually happening?

hook onMounted has been called when app unmount

System Info

System:
    OS: macOS 12.2.1
    CPU: (8) arm64 Apple M1
    Memory: 73.73 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.0/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
    pnpm: 7.11.0 - ~/.nvm/versions/node/v16.17.0/bin/pnpm
  Browsers:
    Chrome: 125.0.6422.78
    Safari: 15.3
  npmPackages:
    vue: ^3.4.21 => 3.4.27

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: suspense

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions