proposal: no-unstable-context-value#454
Open
NisargIO wants to merge 1 commit into
Open
Conversation
v2 auto-discovered draft. No implementation yet. Pipeline: millionco/react-doctor-evals#11
|
✅ No new issues Reviewed by reactreview for commit 54cf1da. Configure here. |
Member
|
needs to check for React Compiler, dont do on React Compiler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposal:
react-doctor/no-unstable-context-valueperformancewarnNEW::no-unstable-context-valueWhy the bug exists
Generality check
Sources
Discovered by the react-doctor-evals discovery flywheel mining bug-fix evidence across React OSS repos. Pipeline:
Backing evidence
GeekyAnts/NativeBase-src/components/primitives/Checkbox/CheckboxGroup.tsx(FixCommitMeta)Validation prompt
FP-aware guidance for the react-review agent when triaging this rule:
Fix prompt
Positive fixture (SHOULD trigger)
Negative fixture (should NOT trigger)
Proposed AST detector
Would land at
packages/oxlint-plugin-react-doctor/src/plugin/rules/performance/no-unstable-context-value.ts:Generated by `rde discover` (v2 prompt: WHY-reasoning + generality check + explicit abstain). See [millionco/react-doctor-evals#11](https://github.com/millionco/react-doctor-evals/pull/11) for the pipeline. Implementation, test fixtures, and rule registration are deliberately deferred — this PR exists for maintainer triage of the proposal only.
Note
Low Risk
Adds a documentation-only draft proposal; no runtime or linting behavior changes are introduced.
Overview
Adds a new draft proposal doc (
proposals/no-unstable-context-value.md) describing a potentialreact-doctor/no-unstable-context-valueperformance rule to warn when a Context providervalueis constructed inline (unstable reference), including rationale, evidence link, suggested fix guidance, and a proposed AST detection approach (not yet implemented).Reviewed by Cursor Bugbot for commit 54cf1da. Bugbot is set up for automated code reviews on this repo. Configure here.