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
{{ message }}
Repository navigation
After adding reactDevtools() in vite.config.ts - hot reloading breaks #33
When ever I made a change to any file vite would normally hot reload but after I added reactDevtools() into my vite config - hot reloading completely broke.
Doesn't matter if its first in the list or last hot reloading breaks.
Hey @UrbanChrisy, sorry this took so long to get to and sorry for the bug.
You were right, our plugin was breaking Fast Refresh. I was replacing the devtools hook on startup without preserving the hook that react-refresh needs for HMR to work.
This should be fixed in #34. You can test with npm install agent-react-devtools@canary
Let me know if it works for you
Activity
fix: preserve react-refresh inject wrapper to fix Vite HMR
piotrski commentedon Mar 4, 2026
Hey @UrbanChrisy, sorry this took so long to get to and sorry for the bug.
You were right, our plugin was breaking Fast Refresh. I was replacing the devtools hook on startup without preserving the hook that
react-refreshneeds for HMR to work.This should be fixed in #34. You can test with
npm install agent-react-devtools@canaryLet me know if it works for you