dillon1000/react

Commit

compiler: fix the `hookKind` for `useInsertionEffect` (#30069)

Currently, the `hookKind` for `useInsertionEffect` is set to
`useLayoutEffect`. This pull request fixes it by adding a new `hookKind`
for `useInsertionEffect`.
Browse files
Changed paths2 files
First-parent comparison
M compiler/packages/babel-plugin-react-compiler/src/HIR/Globals.ts ModifiedM compiler/packages/babel-plugin-react-compiler/src/HIR/ObjectShape.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…