Skip to content

is there a way to load assets asynchronously? #1478

Answered by drcmda
bhushan6 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bhushan6
Comment options

Answer selected by bhushan6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants