Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error DOMException: <ComponentName> unmount while Vite HMR #839

Open
richvoronov opened this issue May 13, 2024 · 0 comments
Open

Error DOMException: <ComponentName> unmount while Vite HMR #839

richvoronov opened this issue May 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@richvoronov
Copy link

What happened?

What happened?
I get DOM unmount error after updating React component files with Vite HMR

Context:

    "@vitejs/plugin-react-swc": "^3.6.0",
    "vite": "^5.1.6",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "@reatom/npm-react": "^3.8.6",

Reproduction:

  1. Update component code, for example just write console.log somewhere
  2. Save the file to have Vite update the files with HMR.
  3. Then trigger reatomAsync and see the error in the console.

The error can be fixed by refreshing the page. So this is not a critical bug, but rather an annoying behavior

image

Part

Package @reatom/npm-react

Version

3.8.6

What browsers are you seeing the problem on?

No response

Relevant log output

Uncaught (in promise) DOMException: SomeComponent unmount
@richvoronov richvoronov added the bug Something isn't working label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant