UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

18 lines 942 B
import { QueryFilters } from '@tanstack/query-core'; import { QueryClient, QueryKey } from '@tanstack/react-query'; import { KeyFactory } from './KeyFactory'; /** * Invalidate all queries for the given entity. Table queries will be reset, i.e. the stale data will be removed from the cache. * @param queryClient * @param keyFactory * @param id the ID of the entity * @param excludeQueryKey do not invalidate queries exactly matching this query key (useful if you intend to call setQueryData) */ export declare function invalidateAllQueriesForEntity(queryClient: QueryClient, keyFactory: KeyFactory, id: string, excludeQueryKey?: QueryKey): Promise<void>; /** * Invalidate all queries that retrieve the actions required to gain download access * @param queryClient * @param keyFactory */ export declare function getAllActionsRequiredQueryFilters(keyFactory: KeyFactory): QueryFilters[]; //# sourceMappingURL=QueryFilterUtils.d.ts.map