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

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

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

Parameters

initialValue: Value

Returns

WritableAtom<Value, [SetStateActionWithReset<Value>], void> & WithInitialValue<Value>