Repository navigation
oxlint-plugin-react-doctor@0.9.21
Patch Changes
-
#2320
5a2c6f5Thanks @aidenybai! - Report an unguardeduseReducerdispatch afterawaitor inside a microtask or Promise callback when it goes through a transparent local setter helper, such asqueueMicrotask(() => assign(dispatch, action)), exactly where the direct dispatch is reported. Onlyno-set-state-after-await-in-effectaccepts the forwarded dispatch, because it already counts a direct dispatch. The prop-change rules, which compare writes againstuseStateinitializers, stay unchanged. Imported, reassigned, asynchronous, deferred and conditional helpers, and reassigned dispatch bindings, stay outside the proof. -
#2319
39152dcThanks @aidenybai! - Reportreact-hooks-js/set-state-in-effectwhen an effect updates state synchronously through a transparent local setter helper, such asuseEffect(() => assign(setValue, next)), which React Compiler does not follow. A newforwarded-set-state-in-effectrule finds the write with the forwarded setter proof, runs only when the compiler rule is enabled, and React Doctor reports its finding under the compiler's rule key, message and docs link, soreact-hooks/set-state-in-effectdisable comments, ignores and scoring treat it like the compiler finding. Compiler-visible synchronous setter calls retain duplicate suppression. Ref-derived measurements and guarded ref writes remain allowed. Imported, reassigned, asynchronous, deferred, conditional and multi-statement forwarding helpers stay outside the proof.