UNPKG

@preact-signals/query

Version:

A reactive utility for React/Preact that simplifies the handling of data fetching and state management. Powered by Preact Signals, it provides hooks and functions to create reactive resources and manage their state seamlessly.

8 lines 546 B
import { ExecuteOptionsOnReferenceChangeProp } from "./types.ts"; import { ReadonlySignal } from "@preact-signals/unified-signals"; export declare const EMPTY_OBJECT: {}; export declare const EMPTY_ARRAY: readonly []; export declare const wrapWithUntracked: <T extends Function>(fn: T) => T; export declare const wrapFunctionsInUntracked: <T extends Record<any, any>>(obj: T) => T; export declare const useRefBasedOptions: <T extends ExecuteOptionsOnReferenceChangeProp>(options: () => T) => ReadonlySignal<T>; //# sourceMappingURL=utils.d.ts.map