What's Changed
🐞 Fixes
react-x/refs: inverted lazy-init guards whose non-null branch ends in an all-terminatingswitchwith adefaultclause, or in awhile (true)/for (;;)/do...whileloop whose body always returns or throws, are no longer reported as render-time writes. (#2109)
🏗️ Internal
@eslint-react/ast:Analyze.isUnconditionallyTerminatingnow recognizes terminatingswitchstatements with adefaultclause and terminatingwhile (true)/for (;;)/do...whileloops, excluding constructs with an escapingbreak/continue(including labeled jumps), fall-through clause groups, switches withoutdefault, and non-literal-true loop tests. (#2109)
Full Changelog: v5.30.0-beta.24...v5.30.0-beta.25
Attestation
https://github.com/Rel1cx/eslint-react/attestations/63622572