atom example with asyc data fetch from server #1919
Replies: 4 comments
-
Currently I'm doing like this to set the atom data from the server but the
|
Beta Was this translation helpful? Give feedback.
-
Have you had a look at https://recoiljs.org/docs/guides/asynchronous-data-queries#query-default-atom-values yet? |
Beta Was this translation helpful? Give feedback.
-
@BenjaBobs Thanks for the info. Could you please review my code as I'm getting this error in the console.
|
Beta Was this translation helpful? Give feedback.
-
That is likely because you haven't wrapped At this point you have two options:
|
Beta Was this translation helpful? Give feedback.
-
Hi Team,
Could you please put in the docs, an example that initializes an atom with the data fetched from the server.
Thanks,
Arun
Beta Was this translation helpful? Give feedback.
All reactions