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

KeepAlive with keyed child and scoped style not working #1511

Closed
danyadev opened this issue Jul 5, 2020 · 1 comment
Closed

KeepAlive with keyed child and scoped style not working #1511

danyadev opened this issue Jul 5, 2020 · 1 comment

Comments

@danyadev
Copy link

danyadev commented Jul 5, 2020

Version

3.0.0-beta.18

Reproduction link

https://github.com/danyadev/vue3-bug

Steps to reproduce

Double click on the button and look in DevTools

What is expected?

no changes

What is actually happening?

the text "Foo" disappeared and an error appeared in the console:

TypeError: Cannot read property 'subTree' of null (runtime-core.esm-bundler.js?5c40:208)
    at move (runtime-core.esm-bundler.js?5c40:3677)
    at Object.sharedContext.activate (runtime-core.esm-bundler.js?5c40:4330)
    at processComponent (runtime-core.esm-bundler.js?5c40:3196)
    at patch (runtime-core.esm-bundler.js?5c40:2857)
    at componentEffect (runtime-core.esm-bundler.js?5c40:3384)
    at Object.reactiveEffect [as update] (reactivity.esm-bundler.js?a1e9:42)
    at updateComponent (runtime-core.esm-bundler.js?5c40:3273)
    at processComponent (runtime-core.esm-bundler.js?5c40:3203)
    at patch (runtime-core.esm-bundler.js?5c40:2857)
    at patchBlockChildren (runtime-core.esm-bundler.js?5c40:3128)
@danyadev
Copy link
Author

danyadev commented Jul 5, 2020

However, this is not the only problem with Keep-Alive. This is the second unplanned problem when trying to reproduce another bug:

(This is most likely due to the fact that there is no check for the lack of a deactivated hook)

image

In the near future, I hope I will argue this too. The difficulty may be that I use Keep-Alive with the beta version of the vue-router

Edit: Turns out it wasn't related to vue-router

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

Successfully merging a pull request may close this issue.

1 participant