Skip to content

cannot unmount devtools when React StrictMode is ON #391

@SeanCassiere

Description

@SeanCassiere

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.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

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.

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