What's Changed
🐞 Fixes
react-x/use-state: calls in computed object property keys (ex:useState({ [getKey()]: value })) and JSX subtrees are now detected by the lazy-initialization check instead of being missed. (#2080)
📝 Documentation
- Added a TanStack Redact example. (#2079)
- Improved the FAQ, glossary, and examples pages.
🏗️ Internal
@eslint-react/ast: added theCollectnamespace (getIdentifiers,getCallExpressions,getNewExpressions,getReturnStatements,getReturnExpressions) and a lightweightTraverse.simpleTraversethat does not depend on@typescript-eslint/typescript-estree; adopted by thereact-x/no-missing-key,react-x/set-state-in-effect,react-x/use-memo, andreact-x/use-staterules. (#2080)react-x/set-state-in-effect: identifier collection now also visits computed property keys, rest elements, and JSX expression containers when resolving ref provenance. (#2080)- Removed the now-unused
@typescript-eslint/typescript-estreedependency from@eslint-react/ast,@eslint-react/core,@eslint-react/var, andeslint-plugin-react-x. (#2080)
Full Changelog: v5.30.0-beta.1...v5.30.0-beta.2
Attestation
https://github.com/Rel1cx/eslint-react/attestations/59630101