Module

x/jotai/src/vanilla/utils.ts>atomWithRefresh

👻 Primitive and flexible state management for React
Latest
function atomWithRefresh
import { atomWithRefresh } from "https://dotland.deno.dev/x/jotai@v2.10.2/src/vanilla/utils.ts";

Type Parameters

Value
Args extends unknown[]
Result

Parameters

read: Read<Value, Args, Result>
write: Write<Value, Args, Result>

Returns

WritableAtom<Value, Args | [], Result | void>

Parameters

read: Read<Value, [], void>

Returns

WritableAtom<Value, [], void>