forked from mirrors/thatmattlove-hyperglass
remove trailing slash from query hook
This commit is contained in:
parent
20ae02e2e5
commit
016cfd71d4
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ export function useLGQuery(
|
|||
);
|
||||
|
||||
return useQuery<QueryResponse, Response | QueryResponse | Error, QueryResponse, LGQueryKey>({
|
||||
queryKey: ['/api/query/', query],
|
||||
queryKey: ['/api/query', query],
|
||||
queryFn: runQuery,
|
||||
// Invalidate react-query's cache just shy of the configured cache timeout.
|
||||
cacheTime: cache.timeout * 1000 * 0.95,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue