MarshallOfSound / MarshallOfSound/electron-devtools-installer
React Devtools only appears after a reload
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
> [!IMPORTANT]
> This is an upstream issue, see https://github.com/electron/electron/issues/41613
Hi all,
Thanks for the repo, it is quite straight forward to setup.
However, I can't get the tools to popup in the devtool page until I reload the main page.
If I **await installExtension(REACT_DEVELOPER_TOOLS, true),** the tools are not loaded at first launch, I need to reload them.
If I manually load them **await session.defaultSession.loadExtension**, evertyhing load fine from scratch.
Any idea how solve this?
Maybe a missing await in the installation process?
It seems to be a race condition.
Thanks
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the first-launch behavior using installExtension(REACT_DEVELOPER_TOOLS, true), then compare it with session.defaultSession.loadExtension. Read the linked upstream Electron issue 41613 and trace the installation entry point to understand the suspected race. Done means React DevTools appears on the initial launch without reloading the main page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, react, typescript
- Domain
- desktop, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100