Closed freerig closed 1 year ago
The context is not available on the component containing the TresCanvas. To access it move it to a child component
So why does it work on the video ?
So why does it work on the video ?
Probably the video is for the previous versions when it was useTres instead of useTresContext
Describe the bug
This error hapend when I write
const state = useTres()
orconst { state } = useTres()
In devtools, and the scene is not loaded. This is my code (in App.vue):I did it like in this tutorial: The tutorial
Reproduction
https://stackblitz.com/edit/tresjs-basic-fg1y4w?file=src%2FApp.vue
Steps to reproduce
Add
to your code
System Info
No response
Used Package Manager
npm
Code of Conduct