-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
useTexture does not work in child components #877
Comments
It seems to successfully load the texture, but then something goes wrong. |
Hey @AndreasFaust ,
|
Closing as done. Here's the working StackBlitz: https://stackblitz.com/edit/nuxt-starter-6gmpkp?file=components%2FScene.vue Feel free to reopen if there's still a problem. |
Closing as "won't fix". Here's the working StackBlitz: https://stackblitz.com/edit/nuxt-starter-6gmpkp?file=components%2FScene.vue Feel free to reopen if there's still a problem. |
Thank you so much! |
Describe the bug
When I use useTexture in the same component as TresCanvas, it works fine.
When I put the same configuration in a child component, it stops working without throwing an error.
The whole child component is not rendered.
Is this a bug or am I doing something wrong?
Reproduction
https://stackblitz.com/edit/nuxt-starter-f4k5xz?file=README.md
The text was updated successfully, but these errors were encountered: