feat: add React Compiler support for hooks - #8062
Conversation
🦋 Changeset detectedLatest commit: 2f05d1e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
c7ec867 to
3e94967
Compare
|
Integration test results from github/github-ui PR:
CI check runs linting, type checking, and unit tests. Check the workflow logs for specific failures. Need help? If you believe this failure is unrelated to your changes, please reach out to the Primer team for assistance. |
Closes #
Adds React Compiler support for the remaining ignored shared hooks by removing them from the compiler unsupported list.
Changelog
New
Changed
Removed
Rollout strategy
Testing & Reviewing
npx eslint --no-cache packages/react/src/hooks/useAnchoredPosition.ts packages/react/src/hooks/useFocusTrap.ts packages/react/src/hooks/useFocusZone.ts packages/react/src/hooks/useMenuInitialFocus.ts packages/react/src/hooks/useOnEscapePress.ts packages/react/src/hooks/useResizeObserver.ts packages/react/src/hooks/useSafeTimeout.ts packages/react/src/hooks/useScrollFlash.ts packages/react/src/hooks/useMergedRefs.tsnpm test -- --run packages/react/src/hooks/__tests__/useAnchoredPosition.test.tsx packages/react/src/hooks/__tests__/useMenuInitialFocus.test.tsx packages/react/src/hooks/__tests__/useMergedRefs.test.tsx packages/react/src/hooks/__tests__/useOnEscapePress.test.tsx packages/react/src/hooks/__tests__/useSafeTimeout.test.tsxnpm run build && npm test -- --run && npm run type-check && npm run lint && npm run lint:css && npm run format:diffMerge checklist