Skip to content
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

collidable component doesnt load automatically #165

Open
benjaminha14 opened this issue Mar 28, 2023 · 2 comments
Open

collidable component doesnt load automatically #165

benjaminha14 opened this issue Mar 28, 2023 · 2 comments
Assignees

Comments

@benjaminha14
Copy link
Collaborator

Collidable component isn't loading automatically, looks like you need to hard refresh it to get collisions loaded.

@alex-shortt
Copy link
Collaborator

I think what's going on is that Collidable will check its children for meshes on the first render, but if the meshes of its children are suspensed, it will see no meshes. When the suspense resolves, the children prop is still technically the same, so it doesn't run again.

@thedocscripts
Copy link

thedocscripts commented Apr 5, 2023

i did a workaround for this using the onupdate void in model and a usestate to enable collisions once it loads.
This isnt the best solution for thisbut its a "workaround"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants