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 332 B
'use client'; import { parseQueryArgs, QueryObserver } from '@tanstack/query-core'; import { useBaseQuery } from "./useBaseQuery.js"; export function useQuery(arg1, arg2, arg3) { const parsedOptions = parseQueryArgs(arg1, arg2, arg3); return useBaseQuery(parsedOptions, QueryObserver); } //# sourceMappingURL=useQuery.js.map