Replies: 1 comment 2 replies
-
Do you mean something like this? const dataAtom = atom((get) => Promise.resolve({ text: 'foo' }));
const textAtom = atom(async (get) => (await get(dataAtom)).text); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to do the simplest of things:
What does this pattern look like in jotai? (I would prefer to render fallbacks using suspense)
There is no example of this in the docs: https://jotai.org/docs/guides/async
Beta Was this translation helpful? Give feedback.
All reactions