1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 08:48:05 +00:00

remove trailing slash from query hook

This commit is contained in:
thatmattlove 2024-03-03 00:21:24 -05:00
parent 20ae02e2e5
commit 016cfd71d4

View file

@ -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,