UNPKG

@excentone/spfx-react

Version:

Contains custom ReactJs components and hooks intended to use when developing SharePoint Framework (SPFx) Web components.

9 lines (8 loc) 551 B
import { ICachedListFilterOptions, CachedListQueryHook } from "./useCachedListQuery.types"; /** * `useCachedListQuery` is a custom hook to easily use and cache an object to be used to filter a list of records. * @param cacheKey The unique key of the cache. * @param options The options to pass through the hook. * @returns A tuple that contains the state of the filters and operations to modify it. */ export declare const useCachedListQuery: <TQuery>(cacheKey: string, options?: ICachedListFilterOptions<TQuery>) => CachedListQueryHook<TQuery>;