What's Changed
🐞 Fixes
react-x/set-state-in-effect: optional chaining in asetStateargument (ex:setData(ref.current?.value),setWidth(el?.offsetWidth ?? 0)whereelis ref-derived) no longer defeats the ref-value exemption; theChainExpressionwrapper is now unwrapped during ref-source detection. (#2011)
📝 Documentation
- Aligned rule documentation with the current react.dev reference docs. (#2013)
Full Changelog: v5.24.8...v5.24.9
Attestation
https://github.com/Rel1cx/eslint-react/attestations/53901493