Replies: 1 comment 1 reply
-
can you give me a reduced codesandbox? this is probably something else. when objects are unmounted, they are disposed (r3f calls obj.dispose() on it, its geometries, materials and so on). so your object is likely gone at some point. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Switching 3D meshes in the scene causes a short flicker while the current model is removed from the scene and the next one is loaded. This does not happen when you load a previously loaded object again. This is the case for
Suspense
block havingfallback={null}
To avoid the flicker I want to use the previously loaded object as fallback, but it accepts
mesh
tag but notprimitive
. Which makes it difficult to work with objects that have multiple meshes or armatures in them.Error I get when trying to set primitive as fallback is
Cannot read property 'remove' of null
Beta Was this translation helpful? Give feedback.
All reactions