Skip to content

Commit

Permalink
Fix a typo in async-read-atoms guide
Browse files Browse the repository at this point in the history
One of the values for `loadable` atom's status is incorrect
  • Loading branch information
molokovev committed Oct 20, 2023
1 parent 8851379 commit 1924909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/quick-start/async-read-atoms/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Jotai is inherently leveraging \`Suspense\` to handle asynchronous flows.
</Suspense>
~~~
But there is a more jotai way of doing this with the \`loadable api\` present in \`jotai/utils\`. By simply wrapping the atom in loadable util and it returns the value with one of the three states: \`loadable\`, \`hasData\` and \`hasError\`.
But there is a more jotai way of doing this with the \`loadable api\` present in \`jotai/utils\`. By simply wrapping the atom in loadable util and it returns the value with one of the three states: \`loading\`, \`hasData\` and \`hasError\`.
~~~js
{
Expand Down

0 comments on commit 1924909

Please sign in to comment.