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

x/jotai/src/react/utils/useHydrateAtoms.ts>useHydrateAtoms

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

Type Parameters

T extends (readonly [AnyWritableAtom, unknown])[]

Parameters

values: InferAtomTuples<T>
optional
options: Options

Type Parameters

T extends Map<AnyWritableAtom, unknown>

Parameters

values: T
optional
options: Options

Type Parameters

T extends Iterable<readonly [AnyWritableAtom, unknown]>

Parameters

values: InferAtomTuples<T>
optional
options: Options