import { atomWithDefault } from "https://deno.land/x/jotai@v2.0.4/src/vanilla/utils/atomWithDefault.ts";
Parameters
getDefault: Read<Promise<Value>, [SetStateAction<Awaited<Value>> | RESET], void>
Returns
WritableAtom<Promise<Value> | Value, [SetStateAction<Awaited<Value>> | RESET], void | Promise<void>>
Parameters
getDefault: Read<Value, [SetStateAction<Awaited<Value>> | RESET], void>
Returns
WritableAtom<Value, [SetStateAction<Awaited<Value>> | RESET], void>