What's Changed
🐞 Fixes
react-x/set-state-in-effect: more value shapes are recognized as ref-derivedsetStatearguments: interpolations in template literals (ex:setData(`${ref.current}`)), tagged templates (both the quasi and a ref-derived tag), object and array literals (ex:setData({ value: ref.current })), and spreads (ex:setData({ ...ref.current })) — previously these fell through to the default case and were reported. (#1988)
🏗️ Internal
react-x/use-state: aligned theCallExpression/NewExpressionvisitor keys of the nested-expression collectors to callee-first order, matchingeslint-visitor-keys; no behavior change. (#1988)- Added complex-nesting boundary tests for the
getNested*helpers used byreact-x/no-missing-key,react-x/set-state-in-effect,react-x/use-memo, andreact-x/use-state. (#1988) - Bumped
fumadocs-coreandfumadocs-uito16.15.18,fumadocs-mdxto15.4.6,lucide-reactto1.50.0, and@types/nodeto26.6.4.
Full Changelog: v5.24.0-beta.0...v5.24.0-beta.1
Attestation
https://github.com/Rel1cx/eslint-react/attestations/52455997