You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use static import in connect module to prevent race condition
The connect module used a dynamic `await import('react-devtools-core')`
which yielded control before `initialize()` could install the devtools
hook. This created a race where react-dom would load first, find no
hook, and proceed without connecting to devtools.
Switch to a static import so `initialize()` runs synchronously at
module evaluation time, before any dependent modules (like main.tsx)
execute. This also avoids top-level await which is incompatible with
Vite's esbuild dep optimizer (es2020 target).
Fixes#14
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments