Skip to content

React Scan prevents React DevTools from working #404

Open

Description

@phou-figma

React Scan seems to interfere with React DevTools, making it unusable when both extensions are enabled:

Image

Versions:

  • React DevTools - 6.1.5 (7/4/2025)
  • React Scan - 1.0.9
  • Chrome - Version 138.0.7204.184 (Official Build) (arm64)

Activity

  1. h3adache commented on Aug 21, 2025

    @h3adache

    This is still broken even when using the zip from https://github.com/aidenybai/react-scan/blob/main/BROWSER_EXTENSION_GUIDE.md#chrome that includes version 1.1.4

  2. txbm commented on Aug 30, 2025

    @txbm

    Came here looking for this exact issue, can confirm broken on Chrome 139, React 19, React Scan 0.3.2

  3. lehovec commented on Sep 9, 2025

    @lehovec

    Same problem, I found temporary fix by load it asynchronously:

      setTimeout(async () => {
        const { scan } = await import("react-scan");
        scan({
          enabled: true,
          trackUnnecessaryRenders: true,
        });
      }, 1000);
  4. aaditmshah-commversion commented on Sep 12, 2025

    @aaditmshah-commversion

    I can't view the React DevTools component tree when using React Scan. Loading React Scan asynchronously didn't help either. This is a major issue that needs to be fixed.

  5. joeyfigaro commented on Oct 31, 2025

    @joeyfigaro

    Since react-scan hacks React's internals, I had just assumed it was a one tool or the other kind of deal. @aaditmshah-commversion @txbm

    They're using bippy to setup react-scan, so.

  6. txbm commented on Nov 1, 2025

    @txbm

    @joeyfigaro yeah we ended up reaching the same conclusion and just dropped react-scan entirely in favor of just using browser native repaint/FPS profiling tools. Ultimately the component render flashing thing seemed like it would be useful but in practice wasn't that much more useful than just looking at composite layer repaints + total FPS and then call stacks to figure out what component was misbehaving

  7. elvismdev commented on Nov 9, 2025

    @elvismdev

    Same here, it totally disabled the React DevTools for me when I installed the React Scan chrome extension. Also while at it and testing it out, it failed to identify others components that are unnecessarily re-rendering, which React DevTools Profiler properly identifies and flags.

  8. rookbreezy commented on Apr 6, 2026

    @rookbreezy

    Another issue relates to this, where react scan isn't working with dev tools, there is a partial fix with react-scan/all-environments

    #400 (comment)

  9. aidenybai commented on May 2, 2026

    @aidenybai
    Owner

    v0.5.5 (#437) likely resolves this for the most common reproduction.

    Several reports here noted that switching from react-scan to react-scan/all-environments made the issue go away. The only meaningful difference between those two entry points is that all-environments bypasses React Scan's production-detection check — and that check had a bug where any single registered production renderer would flip React Scan into "production mode" and disable it (#402). The Next.js dev overlay registers a production React build alongside the user's dev React, which was enough to trigger this for many setups; it's also possible React DevTools' presence interacts here in a related way.

    That production-detection bug is fixed in 0.5.5. Could anyone hitting this on react-scan@0.5.5 (using the regular react-scan entry) please confirm whether the issue still reproduces? If it does, I'd like to dig further into the bippy hook ↔ React DevTools hook race.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions