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

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

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

Type Parameters

Param
AtomType extends Atom<unknown>

Parameters

initializeAtom: (param: Param) => AtomType
optional
areEqual: (a: Param, b: Param) => boolean

Returns

AtomFamily<Param, AtomType>