-
-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(website): add atomWithObservable to utils section #774
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pmndrs/jotai/DXarTmVazmv6KwLyddKDqcETrYaa |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1e452b6:
|
docs/api/utils.mdx
Outdated
@@ -220,6 +247,7 @@ const countReducer = (prev, action) => { | |||
const countReducerAtom = atomWithReducer(0, countReducer) | |||
``` | |||
|
|||
<CodeSandbox id="g3tsx" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes 😳. removed
https://codesandbox.io/s/88pnt Hmm, this doesn't work even without redux devtools ext. |
728a1eb
to
e2e5bd6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Should we comment out the codesandbox, or just merge this as is?
e2e5bd6
to
1e452b6
Compare
Yeah, it's failing at the exact same point. Looks that they also have the Observable symbol set. I think that's better to comment the CodeSandbox and wait for the fix. I also added a link to the async page when asking for the |
Looks good. Let's merge this and prioritize #760. |
Continuation of #341, adding the
atomWithObservable
usage to the utils section.But the CodeSandbox is failing due to #760.