API/QubeeQueryKey
QubeeQueryKey
typesrc/types/qubee-query-key.type.ts
The cache key of a list request: 'qubee', the request’s address and its headers — null
and null when there is no request.
qubeeQueryOptions builds it, and useQubeeSWR uses the same one. Every key starts with
'qubee', so queryClient.invalidateQueries({ queryKey: ['qubee'] }) reaches all of them.
Import
Section titled “Import”import type { QubeeQueryKey } from '@qubeejs/react/tanstack-query';Definition
Section titled “Definition”type QubeeQueryKey = readonly ['qubee', null | string, null | Readonly<Record<string, string>>]