Skip to content

throw Cannot read properties of undefined (reading 'stop') on component unmount, and use nested watch. #5783

Closed
@BiosSun

Description

@BiosSun

Version

3.2.30

Reproduction link

sfc.vuejs.org/

Steps to reproduce

  1. please click 'Toggle' button in demo, you will see the error.

What is expected?

When the 'Toggle' button is clicked, the <Comp> component is unmounted normally.

What is actually happening?

'Toggle' button then change visible to false, then it will cause the <Comp> to be unmount, and throw error.


The issue is present in 3.2.30 and later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't workinghas workaroundA workaround has been found to avoid the problemneed guidanceThe approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions