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

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

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

Type Parameters

Value
Slice

Parameters

anAtom: Atom<Value>
selector: (v: Value, prevSlice?: Slice) => Slice
optional
equalityFn: (a: Slice, b: Slice) => boolean