You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
If you want to keep the switched-out components in memory so that you can preserve their state or avoid re-rendering, you can wrap a dynamic component in a element:
According to the docs, it should be an expected behavior, that's what keep-alive does.
I understand that the state is preserved (like all data in the component), but to me it feels a bit unintuitive that in addition to that, dynamically bound props breaks under these circumstances.
Edit: If this is the expected behavior, shouldn't there at least be away to force dynamically bound props to update themselves when a kept-alive component appears?
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
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.
The text was updated successfully, but these errors were encountered: