You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't like Vue's KeepAlive cache policy , So I want to create a component like KeepAlive.
But When I use my Component with transition,there is a error Uncaught TypeError: Cannot read property '_' of null.
This error is create by packages/runtime-core/src/componentSlots.ts initSlots.
I don't know how to resolve it.
const KKeepAliveImpl: ComponentOptions = {
name: `KKeepAlive`,
__isKeepAlive: true,
setup(props, { slots }: SetupContext) {
return () => {};
},
};
const KKeepAlive = KKeepAliveImpl as any as {
__isKeepAlive: true;
new (): {
$props: VNodeProps;
};
};
What is expected?
Like KeepAlive work.
What is actually happening?
there is a error Uncaught TypeError: Cannot read property '_' of null.
The text was updated successfully, but these errors were encountered:
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.
You should check this PR and the linked RFC: #3414
Version
3.1.2
Reproduction link
https://github.com/hezhongfeng/vue-page-stack/tree/next
Steps to reproduce
I don't like Vue's KeepAlive cache policy , So I want to create a component like KeepAlive.
But When I use my Component with
transition
,there is a errorUncaught TypeError: Cannot read property '_' of null
.This error is create by
packages/runtime-core/src/componentSlots.ts
initSlots.I don't know how to resolve it.
What is expected?
Like KeepAlive work.
What is actually happening?
there is a error
Uncaught TypeError: Cannot read property '_' of null
.The text was updated successfully, but these errors were encountered: