v-if + resolveDynamicComponent + computed ,When hiding or deleting components will cause null reference.
Version
3.0.11
Reproduction link
https://codesandbox.io/s/dazzling-snyder-kzsxf?file=/src/App.vue
Steps to reproduce
See codesandbox for details,when click delate
button,will cause Uncaught (in promise) TypeError: Cannot read property 'type' of null
.
What is expected?
Normal work, no error will be reported
What is actually happening?
runtime-core.esm-bundler.js?5c40:4818 Uncaught (in promise) TypeError: Cannot read property 'type' of null
at unmountComponent (runtime-core.esm-bundler.js?5c40:4818)
at unmount (runtime-core.esm-bundler.js?5c40:4736)
at unmountChildren (runtime-core.esm-bundler.js?5c40:4864)
at unmount (runtime-core.esm-bundler.js?5c40:4754)
at patch (runtime-core.esm-bundler.js?5c40:3760)
at patchBlockChildren (runtime-core.esm-bundler.js?5c40:4091)
at processFragment (runtime-core.esm-bundler.js?5c40:4152)
at patch (runtime-core.esm-bundler.js?5c40:3784)
at componentEffect (runtime-core.esm-bundler.js?5c40:4368)
at reactiveEffect (reactivity.esm-bundler.js?a1e9:42)