-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: unmount react root alongside with qwik #7864
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
fix: unmount react root alongside with qwik #7864
Conversation
🦋 Changeset detectedLatest commit: 76b0aa2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
gioboa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your help @sashkashishka
Yep, it will be amazing to cover this part with tests
commit: |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
|
@gioboa, sure, I'll make it |
gioboa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the solution with the provided reproduction repo, and it's working fine.
Thanks so much for your help @sashkashishka 💪
wmertens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I would love some tests, but you can add them in a separate PR @sashkashishka. |

Close #7542
What is it?
Bug
Description
There is a bug, while navigating using SPA like approach, the qwikified react components don't call unmount callbacks specified in
useEffects hooks.There is an open issue that mentions such a problem #7542
In this PR the issue is fixed by calling unmount method in react root entity when the qwik wrapper unmounts.
I haven't added unit tests because I haven't found them. If they are needed, please let me know where to write them.
Checklist
pnpm change