Skip to content

Inactive keep-alive component keeps updating if bound to nested properties #8819

Open
@Razenpok

Description

@Razenpok

Version

2.5.17

Reproduction link

https://refactoring.ninja/vue-v-if-keep-alive/
https://github.com/Razenpok/vue-v-if-keep-alive

Steps to reproduce

  1. Press "Hide labels"
  2. Open dev tools
  3. Select DoesUpdate component
  4. Press "Add stuff"

What is expected?

player.money remains the same

What is actually happening?

player.money goes up
Image from Gyazo


Component "DoesntUpdate" doesn't update on "Add stuff" as expected - it is bound to lives property which is on top level of data.

This isn't a dev tools issue, as I observe the same behavior with devtools disabled

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