Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

react-strict-mode-async-race-condition

النجوم٠
التفرعات٠
آخر تحديث٤ مارس ٢٠٢٦ في ١٧:٠٨

Fix state regression bugs caused by React Strict Mode double-execution racing with async operations (API fetches, WebSocket connections). Use when: (1) UI gets stuck in a loading/connecting state in dev but works in production, (2) a state setter overwrites a more advanced state with a stale value, (3) an effect consumes a one-time resource (memory store, one-time token) on first mount leaving the second mount to fall through to a slower async path. The fix uses React functional state updaters to prevent phase/state regression.

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly