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

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

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