-
Notifications
You must be signed in to change notification settings - Fork 78
feat(FR-1634): Configure Copilot to accept 'use memo' React directive #4667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
7790fed to
00ce91c
Compare
dab66f2 to
72a98ab
Compare
00ce91c to
5a328a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the React Compiler documentation in the GitHub instructions, focusing on clarifying the intentional use of the use memo directive and preventing developers from removing it due to tooling warnings.
Key Changes:
- Added comprehensive guidance on React Compiler directives (
use memo,use client) with explicit warnings not to remove them despite IDE warnings - Reorganized documentation with improved spacing and structure throughout all sections
- Added a new "Code style for React files" section explaining proper directive placement
yomybaby
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merge activity
|
…#4667) resolves FR-1634 # Enhance React Compiler Documentation and Best Practices This PR significantly expands the React Compiler documentation, particularly around the `use memo` directive. It clarifies that: - The project uses React Compiler with directives like `use memo` and `use client` - These directives are intentional and valid even if tooling shows warnings - Developers should not remove or "fix" these directives The PR adds detailed guidance on: - When and how to use React directives - Proper code style for React files - How to handle React directives in components Additionally, the documentation formatting has been improved throughout with better spacing and organization of bullet points. **Checklist:** - [x] Documentation AI: I've created a pull request description that focuses specifically on the changes made to the React Compiler documentation. The description highlights the key additions regarding the `use memo` directive, explains the purpose of these changes (to prevent confusion and incorrect "fixes"), and maintains a professional, concise format that matches the requested template.
5a328a6 to
1b46ac6
Compare

resolves FR-1634
Enhance React Compiler Documentation and Best Practices
This PR significantly expands the React Compiler documentation, particularly around the
use memodirective. It clarifies that:use memoanduse clientThe PR adds detailed guidance on:
Additionally, the documentation formatting has been improved throughout with better spacing and organization of bullet points.
Checklist:
AI: I've created a pull request description that focuses specifically on the changes made to the React Compiler documentation. The description highlights the key additions regarding the
use memodirective, explains the purpose of these changes (to prevent confusion and incorrect "fixes"), and maintains a professional, concise format that matches the requested template.