feat: add React Compiler support for AvatarStack#8054
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🦋 Changeset detectedLatest commit: 43be583 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 |
|
There was a problem hiding this comment.
Pull request overview
This PR enables React Compiler support for AvatarStack in @primer/react, and adds a patch changeset to reflect the resulting rendering performance improvement.
Changes:
- Removed
AvatarStackfrom the React Compiler “unsupported patterns” list so it can be compiled. - Added a patch changeset describing the consumer-facing rendering performance improvement.
Show a summary per file
| File | Description |
|---|---|
| packages/react/script/react-compiler.mjs | Allows React Compiler processing for AvatarStack by removing it from the unsupported glob patterns. |
| .changeset/react-compiler-avatar-stack.md | Adds a patch changeset documenting the performance improvement for the package release notes. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 0
Closes N/A
Changelog
New
N/A
Changed
Removed
N/A
Rollout strategy
Testing & Reviewing
npx eslint --no-cache packages/react/src/AvatarStack/**/*.{ts,tsx}npm test -- --run packages/react/src/AvatarStack/AvatarStack.test.tsxnpm run build && npm test -- --run && npm run type-check && npm run lint && npm run lint:css && npm run format:diffhttp://localhost:6006.Merge checklist