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
{{ message }}
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
I would like to use React with react-three-fiber to sync state between Three.js Canvas and the rest of the page. Unfortunately this doesn't work atm, Recoil can only be used to sync state inside the Canvas.
Try using the new useRecoilBridgeAcrossReactRoots() hook from #516. This is currently only in master, but we're working on getting that next release out right now.
I would like to use React with react-three-fiber to sync state between Three.js Canvas and the rest of the page. Unfortunately this doesn't work atm, Recoil can only be used to sync state inside the Canvas.
This works:
This doesn't work
And I need the latter to do something like:
Codesandbox for exploration (I don't really know how to debug this as I'm not familiar with Recoil internals):
https://codesandbox.io/s/wizardly-bash-ue9uy
The text was updated successfully, but these errors were encountered: