Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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

Type Parameters

Param
AtomType

Methods

getParams(): Iterable<Param>
remove(param: Param): void
setShouldRemove(shouldRemove: ShouldRemove<Param> | null): void
unstable_listen(callback: Callback<Param, AtomType>): Cleanup

fires when a atom is created or removed This API is for advanced use cases, and can change without notice.