A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/issues/5346 below:

Keep-Alive inside of transition not working with include · Issue #5346 · vuejs/vue · GitHub

Version

2.2.6

Reproduction link

https://jsfiddle.net/50wL7mdz/24930/

Steps to reproduce

Click the "Switch view" button.

What is expected?

The "home" view's state should have been kept alive when switching to the other signin view.

What is actually happening?

Instead the "home" view is recreated everytime.

If I remove the include="home" option from keep-alive, it works as intended or if I remove the mode="out-in" option from the transition node, it also works as intended.
I've debugged this and it seems that when every time it switches the component, the "include" watch is somehow triggered with undefined as val parameter and then it's being triggered again with the correct "home" value but by then the first trigger has already removed the home node from the cache.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4