New
Introducing React Bench, see how different models perform on React code

react-doctor/no-cascading-set-state

Combine into useReducer: `const [state, dispatch] = useReducer(reducer, initialState)`

Status
Retired
Category
State & Effects
Assessment
Evidence-required risk
Required evidence
source code
Default configuration
Disabled until configured
Default severity
warn
Show technical metadata
Scope
All supported frameworks
Active when
always
Requirements
react
Tags
test-noise
Priority
50 (P2)
Source
oxlint-plugin-react-doctor
Rule set
oxlint-plugin-react-doctor 0.9.3 (prompt schema 2)
On this page

Retired compatibility entry: This detector no longer participates in current analysis. No application code change is required.

Validation prompt

Check why this retired rule still appears in your workflow.

This rule is retired. Do not change application code. If it still appears, check the installed React Doctor version and rule configuration.

Fix prompt

Resolve the stale version or configuration that still references this retired rule. Do not change application code to satisfy it.

This rule is retired. Do not change application code. Update React Doctor or remove configuration that enables the retired rule.

Repository-wide copy prompt

Use this prompt to locate and remove stale configuration references across the repository.

Show repository-wide prompt

Resolve any stale react-doctor/no-cascading-set-state report without changing application code.

This rule is retired. Do not change application code. Update React Doctor or remove configuration that enables the retired rule.

Checks:

  • Confirm the installed React Doctor version.
  • Update React Doctor if the project uses an older version.
  • Remove configuration that explicitly enables this retired rule.
  • Run React Doctor and confirm the report no longer appears.

Report the version, configuration, and command you checked.