Skip to content
Source
Sign inSign up
TanStack/devtools

cannot unmount devtools when React StrictMode is ON #391

ClosedSeanCassiere opened this issue 2 comments
SeanCassierecommented

TanStack Devtools version

0.10.0

Framework/Library version

React v19..2.4

Describe the bug and the steps to reproduce it

When React StrictMode is enabled, you are unable to unmount the devtools from the DOM.

Some recent change, has caused a regression where if the devtools component is wrapped in React's <StrictMode> component, then trying to unmount the dock just does nothing.

This behaviour does not occur when not wrapped in StrictMode and therefore not in production.

Load up the sandbox and try to toggle the devtools. Then remove StrictMode and try again.

https://stackblitz.com/edit/github-qn28exza?file=src%2Findex.tsx

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
  1. Hi @SeanCassiere, thanks for the detailed report and for including a reproducible sandbox! :pray:

    It looks like the Framework/Library version field contains 0.10.0, which appears to be the TanStack Devtools version again rather than the framework you're using (e.g. React v18.2.0).

    Since this bug is specifically about React StrictMode behavior, knowing the exact React version would help narrow down whether this is a known React regression or something version-specific to your setup.

    Could you update the issue with:

    • The React version (or whichever framework you're using) and its version number?

    Thanks again for taking the time to file this!

  2. Sorry about that, I've updated the issue description.

  3. AlemTuzlak closed this

Sign in to join this conversation.