TokenToSeaSkill 广场
English 控制台

React18 Batching Patterns

GitHub官方

Provides exact patterns for diagnosing and fixing automatic batching regressions in React 18 class components. Use this skill whenever a class component has multiple setState calls in an async method, inside setTimeout, inside a Promise .then() or .catch(), or in a native event handler. Use it before writing any flushSync call - the decision tree here prevents unnecessary flushSync overuse.

安装

npx skills add github/awesome-copilot --skill react18-batching-patterns