How do you test a components that need a suspense like textures? Or components that uses context? #2666
Unanswered
dannyWoodford
asked this question in
Q&A
Replies: 2 comments
-
did you resolve this in any way? currently attempting to |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would love to know the answer to this as well 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The issue I'm noticing is that if the component utilizes suspense to load textures the
renderer.scene
doesn't have children but if you were to remove theuseTexture
and the maps that usecloudsTexture
you can access the children. I'm having a similar issue with components that use Context. I would imagine it's because, written like this,renderer.scene
refers to the Suspense and not the Clouds like I'd hope.Thanks!!!
___ Test ______________________
___ Clouds component ______________________
Beta Was this translation helpful? Give feedback.
All reactions