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

react-hooks-js/todo

Unimplemented features

Validate the diagnostic

Confirm the reported code matches this rule before you edit it.

Hint-severity diagnostic the Compiler emits when it bails on a feature it should support but has not yet implemented — not a code mistake, more of a 'Compiler cannot optimize this yet' notice. There is no rule-level true/false positive distinction: every diagnostic is a real Compiler limitation rather than a defect in your code.

How to fix

Follow the rule guidance while preserving unrelated behavior.

Copyable fix prompt

Copy this self-contained prompt into your coding agent after you confirm the diagnostic.

Refactor the affected code into a shape the Compiler supports today (often hoisting an inner function, splitting a giant component, or removing a dynamic pattern). If a workaround is not feasible, add a 'use no memo' directive at the top of the file so the Compiler skips it, and check the React Compiler issue tracker for an open ticket covering your pattern. See https://react.dev/reference/eslint-plugin-react-hooks

More React Compiler rules from the rules reference: