Skip to content

Commit da211c3

Browse files
author
willxywang
committed
fix: Memoed Component bails while detached
1 parent 1effaa6 commit da211c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compat/src/suspense.js

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ function detachedClone(vnode, detachedParent, parentDom) {
5757
if (vnode._component._parentDom === parentDom) {
5858
vnode._component._parentDom = detachedParent;
5959
}
60+
61+
// issue #4631
62+
if (vnode.type.name === 'Memoed') vnode._component._force = true;
63+
6064
vnode._component = null;
6165
}
6266

0 commit comments

Comments
 (0)