UNPKG

@mongez/react-atom

Version:
30 lines (29 loc) 948 B
import React from "react"; import { Atom } from "@mongez/atom"; //#region ../@mongez/react-atom/src/context.d.ts /** * @deprecated Re-export of `AtomStoreContext` from "./store". The context * value type changed from a key→atom record to an `AtomStore` instance; if * you only consumed this via `useAtom(key)` the migration is transparent. */ declare const AtomContext: any; /** * Backwards-compatible alias for `<AtomStoreProvider>`. * * Maps the legacy `register` (atoms to pre-clone) to `initialAtoms`, and * `defaultValue` (record of initial atom values) to `initialValues`. * * @deprecated Use `<AtomStoreProvider>` from "./store" directly. */ declare function AtomProvider({ register, defaultValue, children }: { register?: Atom<any>[]; defaultValue?: Record<string, unknown>; children: React.ReactNode; }): React.JSX.Element; //#endregion export { AtomContext, AtomProvider }; //# sourceMappingURL=context.d.mts.map