Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

👻 Primitive and flexible state management for React
Go to Latest
function atomWithRefresh
import { atomWithRefresh } from "https://deno.land/x/jotai@v2.7.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>