-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model keeps loading multiple times #2
Comments
Try adding a Suspense component and fallback component prop high up like so:
I guess some feature you're using might be using Suspense like |
Finally, got Suspense to work with r3fs useLoader/useGLTF.. within Gatsby. Steps
Pseudo
LazyCanvasContent
Content.jsx
Loader.jsx
hope that helps somebody down the road.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I've noticed that this code has a problem. It keeps loading and re loading the 3d model. You can see it by yourself if you open devsTool and take a look at the network tab.
This doesn't happen in Paul's version. But Paul write that in a simple React app and if i tried his code on my Gatsby application i get an error like
Suspense is can't be used in Gatsby cause it's not supported by ReactDOMServer. How do you fix this? Thanks!
The text was updated successfully, but these errors were encountered: