perf: enable React Compiler for shared hooks#8145
Conversation
🦋 Changeset detectedLatest commit: 70299fd 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 |
|
|
🤖 Lint issues have been automatically fixed and committed to this PR. |
4473727 to
4fe7a19
Compare
f8b3d45 to
70299fd
Compare
|
🤖 Lint issues have been automatically fixed and committed to this PR. |
Closes #
Follow up to #8143.
This PR enables React Compiler support for the shared hook internals in
@primer/react. These hooks were still on the migration list because they needed small refactors to avoid compiler skips and keep callback/state behavior stable under compilation.Changelog
New
Changed
Removed
Rollout strategy
This should be a patch since it improves internal rendering behavior for existing hooks without changing the public API.
Testing & Reviewing
npm run lint:react-compiler -w @primer/reactWould love a close look at the hook behavior changes, especially around callback stability and cleanup behavior.