Same model does not load again #266
Answered
by
brianzinn
iamvaibhavrai
asked this question in
Q&A
-
I am trying to load the model in a scene by passing the URL and File Name. It loads appropriately for the first time but when I try to load it again, it won't.
I have made a state for sceneURL and sceneName and setting their values on click of different buttons.
|
Beta Was this translation helpful? Give feedback.
Answered by
brianzinn
Dec 15, 2022
Replies: 1 comment 2 replies
-
does this work: <Model key={`${sceneName}-${sceneURL}`} ... /> There are a few different recipes that have been shared and depends on your scenario how best to get it working. I think I will add a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
iamvaibhavrai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does this work:
There are a few different recipes that have been shared and depends on your scenario how best to get it working. I think I will add a
Model
component that doesn't use Suspense, since it suits some use-cases better.