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? |
Answered by
dai-shi
Feb 5, 2021
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 🤔 |
1 reply
Answer selected by
github0013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 🤔