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.

7 lines (6 loc) 473 B
import { ExecuteOptionsOnReferenceChangeProp } from "./types"; 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) => import("@preact/signals-core").ReadonlySignal<T>;