Commit c8018a4
committed
🤖 Fix main process freeze: Make React DevTools non-blocking
PROBLEM: React DevTools installation is awaited in app.whenReady(),
blocking the main process for several seconds before window creation.
User experiences macOS spinning cursor and frozen UI immediately on
'bun start'.
Timeline (blocking):
App ready → await installExtension (8s) → createMenu → createWindow
SOLUTION: Don't await React DevTools installation. Let it install in
background while app continues startup.
Timeline (non-blocking):
App ready → installExtension (background) + createMenu + createWindow
IMPACT:
- Main process no longer blocks on DevTools installation
- Window appears immediately
- DevTools still installs, just doesn't block startup1 parent dc76e7b commit c8018a4
1 file changed
+11
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
| 369 | + | |
369 | 370 | | |
370 | | - | |
371 | | - | |
372 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
373 | 379 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | 380 | | |
379 | 381 | | |
380 | 382 | | |
| |||
0 commit comments