Skip to content

useFind

useFind<T>(service, params?, options?): UseQueryResult<T[] | Paginated<T>, MantleClientError>

Defined in: hooks.ts:42

useQuery over service.find(params) with key [service, "find", params?]. With realtime: { mode: "patch" }, service events update the cached result in place instead of triggering a refetch.

T

string

ClientParams

FindHookOptions<T>

UseQueryResult<T[] | Paginated<T>, MantleClientError>