-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
StrictMode and Mui Dialog breaks Resium #618
Comments
I've updated from [email protected] to [email protected] then I get a similar issue. In strict mode, this occurs. I'm not using MaterialUI Dialog but a custom tailwind component with an absolute div. |
i tried to reproduce the problem without Material UI: |
The new Resium Version seems to fix the duplication bug but moving the viewer to the bounding box works for the first render but breaks after a recreation of the viewer. |
i opend a new issue #661 for the new Problem. The duplciate Cesium render seems to be fixed |
I have an app where Cesium/Resium is used to rendere 3DTilesets on an Openstreetmap in a MaterialUI Dialog. With React StrictMode enabled the first component doesn't get unmounted properly. https://codesandbox.io/p/sandbox/magical-christian-fqsxd6?file=%2Fsrc%2FApp.tsx%3A64%2C23
Inside the Dialog there are 2 instances of Cesium. First a broken one and below it is a second working Cesium instance
Tested on Windows with Chrome, Edge and Firefox.
Wierdly this only happens inside a Mui Dialog. Without the Dialog component Resium unmounts as expected
The text was updated successfully, but these errors were encountered: