useFBX crashes react component #1778
Answered
by
drcmda
nikolagigic
asked this question in
Q&A
-
I've got two components, but only one crashes when I use useFBX hook inside of it, and stack trace does not refer to anything specific that I could use to debug.
When I use it inside of Scene component everything works fine, but when I move the useFBX hook down to Render3D it crashes the app with blank white screen. Any idea what's causing this? Stacktrace:
|
Beta Was this translation helpful? Give feedback.
Answered by
drcmda
Oct 27, 2021
Replies: 1 comment
-
down to render3d means in the render3d's function body? hooks can only be inside canvas, canvas is their context. and async hooks must be within a suspense boundary. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nikolagigic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
down to render3d means in the render3d's function body? hooks can only be inside canvas, canvas is their context. and async hooks must be within a suspense boundary.