useBridge/Bridge, how and when do you use it? #292
-
https://github.com/pmndrs/jotai/tree/master/docs/api Can someone explain what it is good for? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You don't need them unless you need them. 😄 We should add some notes in https://github.com/pmndrs/jotai/blob/master/docs/api/core.md#usebridgebridge 🤔 |
Beta Was this translation helpful? Give feedback.
You don't need them unless you need them. 😄
It's introduced for react-three-fiber and for other custom renderers / multiple roots.
Here's a reference: https://github.com/pmndrs/react-three-fiber/blob/master/markdown/api.md#gotchas
We should add some notes in https://github.com/pmndrs/jotai/blob/master/docs/api/core.md#usebridgebridge 🤔