Skip to content

Props can get out of sync on dynamic components with keep-alive #4237

Closed
@sebpettersson

Description

@sebpettersson

I'm not sure if this is a bug or intended behavior, but if so, maybe this could be clarified in the documentation (and how to go about getting fresh values passed down after coming back from an inactive state).

Vue.js version

2.0.7

Reproduction Link

https://jsfiddle.net/ueLxbc0f/3/

Steps to reproduce

  1. Click on Switch component
  2. Click Increase value
  3. Click on Switch component

What is Expected?

That the component has its prop updated when coming back from inactive state.

What is actually happening?

The prop of the component is out of sync with its parent's data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions