-
I want to load few 3d objects but r3f making me put all the components with imported models in suspense component. How can I load assets asynchronously as the app goes on instead of loading them in advance and reduce the loading time |
Beta Was this translation helpful? Give feedback.
Answered by
drcmda
Jun 30, 2021
Replies: 1 comment 1 reply
-
useLoader.preload(...args) gltfjsx adds these for you by default, for instance https://codesandbox.io/s/re-using-gltfs-dix1y?file=/src/Shoe.js |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bhushan6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
useLoader.preload(...args)
useGLTF.preload(url)
gltfjsx adds these for you by default, for instance https://codesandbox.io/s/re-using-gltfs-dix1y?file=/src/Shoe.js