Skip to content

KeepAlive with keyed child and scoped style not working #1511

@danyadev

Description

@danyadev

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions