resium icon indicating copy to clipboard operation
resium copied to clipboard

3DTilesets do not work after viewer is recreated

Open Kai-W opened this issue 1 year ago • 2 comments

After the Viewer is recreated e.g because a readOnly Prop is updated the 3DTileset are no longer working.

https://codesandbox.io/p/devbox/elastic-thunder-wvx2n3?file=%2Fsrc%2FApp.tsx%3A45%2C11-45%2C68

In the example cesium and the 3D Tileset is loaded and after 2 seconds the Base Layer changes. The viewer gets recreated but the Tilesets don't get updated to the changed viewer

Kai-W avatar May 16 '24 08:05 Kai-W

same behavior in with resium 18.3.12 and cesium 1.123.1 https://codesandbox.io/p/devbox/muddy-water-g3ghrf

Kai-W avatar Nov 27 '24 08:11 Kai-W

Same here for me, as soon as I turned StringMode on the issue popped up, which essentially does what is indicated here. I find that mode pointless regardless of how many argue for it. Sorry, been doing React since the beginning, worst decision the team ever made. So, I once again leave StrictMode off.

AddictArts avatar Feb 13 '25 19:02 AddictArts