Replies: 1 comment
-
You can also use things like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to fetch multiple atoms at once.
Simplified example
I have contents wich have components. A content can be fetched in one go and gets all its components, because there could be hunderds of components which would result in hundreds of single requests to the db. The components can also be updated independently, this must be reflected in the content too. The whole thing is synced to the server.
Data
What I've tried
selectorFamily
for the content to merge the atoms in get/set. But where do I fetch the API?atomFamily
for the content with default to a selector, which does the fetch. But how do I set/sync the other atoms?Example for 1.
Beta Was this translation helpful? Give feedback.
All reactions