Skip to content

Commit

Permalink
compiler: fix the hookKind of useInsertionEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-atomrigs committed Jun 24, 2024
1 parent 89580f2 commit 3e1f645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ const REACT_APIS: Array<[string, BuiltInType]> = [
restParam: Effect.Freeze,
returnType: { kind: "Poly" },
calleeEffect: Effect.Read,
hookKind: "useLayoutEffect",
hookKind: "useInsertionEffect",
returnValueKind: ValueKind.Frozen,
},
BuiltInUseInsertionEffectHookId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export type HookKind =
| "useRef"
| "useEffect"
| "useLayoutEffect"
| "useInsertionEffect"
| "useMemo"
| "useCallback"
| "Custom";
Expand Down

0 comments on commit 3e1f645

Please sign in to comment.