Skip to content

Commit 025875a

Browse files
authored
Check excess for preact-iso (#4898)
1 parent 9c44db8 commit 025875a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diff/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export function diff(
7878
if (
7979
oldVNode._flags & MODE_SUSPENDED &&
8080
// @ts-expect-error This is 1 or 0 (true or false)
81-
(isHydrating = oldVNode._flags & MODE_HYDRATE)
81+
(isHydrating = oldVNode._flags & MODE_HYDRATE) &&
82+
oldVNode._component._excess
8283
) {
8384
excessDomChildren = oldVNode._component._excess;
8485
oldDom = excessDomChildren[0];

0 commit comments

Comments
 (0)