diff --git a/packages/preact/src/index.ts b/packages/preact/src/index.ts index 5171394ae..f2968c0c5 100644 --- a/packages/preact/src/index.ts +++ b/packages/preact/src/index.ts @@ -271,7 +271,7 @@ hook(OptionsTypes.UNMOUNT, (old, vnode: VNode) => { /** Mark components that use hook state so we can skip sCU optimization. */ hook(OptionsTypes.HOOK, (old, component, index, type) => { - if (type < 3) + if (type < 3 || type === 9) (component as AugmentedComponent)._updateFlags |= HAS_HOOK_STATE; old(component, index, type); });