Skip to content

The function in the lifecycle hooks is called only 1 time #4861

@morlz

Description

@morlz

Version

3.2.20

Reproduction link

jsfiddle.net/fdympu39/

Steps to reproduce

In the fiddle, press the toggle button 4 times

What is expected?

Mounted callback calls 2 times.
Unmounted callback calls 2 times.

What is actually happening?

Mounted callback calls 1 times.
Unmounted callback calls 2 times.

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.🔩 p2-edge-case

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions