Replies: 1 comment
-
useTexture is async so it must trigger its next suspense bound, which can wrap the component or higher up parents. once the texture has been loaded, rendering the component again, or using useTexture with the same url in another component must not trigger suspense since the asset has been cached already. if you just want to let the old screen contents stand while something new is loading look into useTransition which will let you pend, it doesn't run into the fallback: https://twitter.com/0xca0a/status/1494674300103708675 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Just wondering is it normal for the suspense fallback to be triggered every time a texture is loaded using
useTexture
, once the texture is cached it fine, but otherwise it causes the scene to momentarily disappear and show the loader.Beta Was this translation helpful? Give feedback.
All reactions