[Question] disable cache with useLoader #2092
-
Is it possible to disable useLoader caching of assets? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
it would not make sense, suspense cannot work without cache, they are one. without cache it would just throw infinitely, creating a loop. you can of course use loaders directly, for instance in useEffect just like in vanilla, but you're loosing suspense: loading, completion, errors and orchestration in general all go out of the window. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I had a weird issue while reloading the same gltf on a different page and I thought it could come from the cache but it seems I've fixed it as it's working now. |
Beta Was this translation helpful? Give feedback.
it would not make sense, suspense cannot work without cache, they are one. without cache it would just throw infinitely, creating a loop. you can of course use loaders directly, for instance in useEffect just like in vanilla, but you're loosing suspense: loading, completion, errors and orchestration in general all go out of the window.