Skip to content

Commit

Permalink
Allow for context to propagate to components using context
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jul 6, 2023
1 parent 60dae3f commit 81861f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preact/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 81861f1

Please sign in to comment.