Fix batching bugs in your React class components.
Guides fixes for React 18 class-component batching regressions, including stale state reads, intermediate renders, and failing tests.
When to use it
Use when class components make multiple asynchronous state updates, before adding flushSync, or when intermediate-state tests fail after upgrading to React 18.
It changes how the agent diagnoses and fixes asynchronous state updates in React class components, choosing refactoring or flushSync according to the supplied patterns.
What you provide
Applies to React 18 codebases using class components.
No additional actions listed.