Skip to content

ref value change in life-cycle hooks does not trigger watch & watchEffect #12624

@dani-zahonyi

Description

@dani-zahonyi

Version

2.7.3

Reproduction link

codesandbox.io

Steps to reproduce

Click on the "toggle" button to see, that callbacks are not called in the child component (Child.vue) after mount, activate, and deactivate.

In App.vue after mount watch does not run either.

What is expected?

WatchEffect & watch callbacks should be called after ref value changed in onMounted, onActivated

What is actually happening?

watch, watchEffect callbacks not called after the value changed in life-cycle hooks (onMounted, onActivated, onDeactivated)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions