const ComponentUsingAsyncAtoms = () => {
const [num] = useAtom(asyncAtom)
// here `num` is always `number` even though asyncAtom returns a Promise
}
const App = () => {
return (
<Suspense fallback={/* What to show while suspended */}>
<ComponentUsingAsyncAtoms />
</Suspense>
)
}
Package Scope
etc
Description
@suspensive/jotai
AS-IS
Possible Solution
TO-BE
https://jotai.org/docs/guides/async
https://jotai.org/docs/extensions/query
etc.
No response