Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep-alive with the same component constructor #3269

Closed
banrikun opened this issue Jul 13, 2016 · 2 comments
Closed

keep-alive with the same component constructor #3269

banrikun opened this issue Jul 13, 2016 · 2 comments
Labels

Comments

@banrikun
Copy link

banrikun commented Jul 13, 2016

vue.js version: v2.0.0-beta.1

No keep-alive: https://jsfiddle.net/banricho/4zhq0pd6/

Use keep-alive: https://jsfiddle.net/banricho/4zhq0pd6/1/

Vue can not switch components of the same constructor with keep-alive. In vue 1.x, <component> always uses initial value and ignores others. But in vue 2, it's blank.

I hope it will works, even with the same component constructor. It's really useful.

Thanks!

@aviggngyv
Copy link

Vue 2.0 is great! so I'm also always keep use latest version on my production project! Everything is work well , except keep-alive, I also try search any keep-alive infomation with google 、github issue and fourm, I hope there have a example demo to show new keep-alive how to work.

It's really useful. +1

Thanks for all your hard work!

@anming-john
Copy link

keep-alive can not detect the same component with Dynamic router like path: test/:type/:id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants