Files
wursor/packages
SinachPatandClaude Sonnet 4.6 1a5d84cb58 fix: make hook.inject robust against React Refresh timing race
Root cause: the React DevTools browser extension injects a hook stub at
document_start (before HTML parsing), so hook.inject can be undefined
when React Fast Refresh runs. React Refresh destructures inject as
undefined and later calls undefined.apply() -> TypeError. This prevents
React from ever setting injectedHook, so onCommitFiberRoot is never called.

Fix: unconditionally replace hook.inject with a wrapper that tries the
captured previous inject (with try/catch) then falls back to our own
renderer ID allocation. Works regardless of script execution order.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 17:11:01 +01:00
..
2026-05-06 18:51:17 +01:00
2026-05-04 12:30:56 +01:00
2026-05-06 22:11:40 +01:00
2026-05-04 12:30:56 +01:00
2026-04-23 09:39:01 +01:00
2026-04-29 12:09:18 +01:00
2026-04-26 09:09:55 +01:00
2026-05-06 22:11:40 +01:00
2026-04-26 09:09:55 +01:00
2026-04-23 09:39:01 +01:00