Skip to content

After adding reactDevtools() in vite.config.ts - hot reloading breaks #33

Closed

Description

@UrbanChrisy

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.

Activity

  1. self-assigned this
    on Mar 4, 2026
  2. added a commit that references this issue on Mar 4, 2026
    56c303a
  3. piotrski commented on Mar 4, 2026

    @piotrski
    Collaborator

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions