You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the tutorial from this incredible blog and added my TypeScript tweaks to it.
It works perfectly on its own.
The issue starts when I add state to the other parts of the app. For example, using a simple useMouse hook in the parent component causes the render loop to fail if I move the mouse. Even Zustand state change causes the render loop to fail.
Below example shows zustand state changing when mouse hover the text.
20250521-1022-21.6067807.mp4
My immediate solution was to memoise the scene component, and it works, but I do not understand why it causes the render loop to fail in the first place.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I followed the tutorial from this incredible blog and added my TypeScript tweaks to it.
It works perfectly on its own.
The issue starts when I add state to the other parts of the app. For example, using a simple useMouse hook in the parent component causes the render loop to fail if I move the mouse. Even Zustand state change causes the render loop to fail.
Below example shows zustand state changing when mouse hover the text.
20250521-1022-21.6067807.mp4
My immediate solution was to memoise the scene component, and it works, but I do not understand why it causes the render loop to fail in the first place.
The text was updated successfully, but these errors were encountered: