( resolver: T | Resolver<TInput, TResult> | RpcClient<TInput, TResult>, params?: TInput, )
| 139 | } |
| 140 | |
| 141 | export function getInfiniteQueryKey<TInput, TResult, T extends AsyncFunc>( |
| 142 | resolver: T | Resolver<TInput, TResult> | RpcClient<TInput, TResult>, |
| 143 | params?: TInput, |
| 144 | ) { |
| 145 | if (typeof resolver === "undefined") { |
| 146 | throw new Error( |
| 147 | "getInfiniteQueryKey is missing the first argument - it must be a resolver function", |
| 148 | ) |
| 149 | } |
| 150 | |
| 151 | const queryKey = getQueryKeyFromUrlAndParams(sanitizeQuery(resolver)._routePath, params) |
| 152 | return [...queryKey, "infinite"] |
| 153 | } |
| 154 | |
| 155 | interface InvalidateQuery { |
| 156 | <TInput, TResult, T extends AsyncFunc>( |
no test coverage detected