Module

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

👻 Primitive and flexible state management for React
Latest
interface AtomFamily
import { type AtomFamily } from "https://dotland.deno.dev/x/jotai@v2.10.2/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.