Skip to content

Commit 4067f40

Browse files
authored
chore: update react query (#4387)
1 parent 7530bf7 commit 4067f40

File tree

4 files changed

+13
-23
lines changed

4 files changed

+13
-23
lines changed

package-lock.json

Lines changed: 10 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@radix-ui/react-context-menu": "^2.1.4",
3030
"@radix-ui/react-select": "^1.2.2",
3131
"@tailwindcss/container-queries": "^0.1.1",
32-
"@tanstack/react-query": "^4.33.0",
32+
"@tanstack/react-query": "^5.0.0",
3333
"@tanstack/react-table": "^8.9.2",
3434
"@tanstack/react-virtual": "^3.0.0-beta.56",
3535
"@uidotdev/usehooks": "^2.2.0",

web/client/src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ function useQueryWithTimeout<
542542
}
543543

544544
const q = useQuery<TQueryFnData, TError, TData, TQueryKey>({
545-
cacheTime: 0,
545+
gcTime: 0,
546546
enabled: false,
547547
queryKey: options.queryKey,
548548
queryFn,

web/client/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface PropsComponent extends HTMLAttributes<HTMLElement> {}
2020
const client = new QueryClient({
2121
queryCache: new QueryCache({
2222
onError(error, query) {
23-
;(query.meta as ApiQueryMeta).onError(error as ErrorIDE)
23+
;(query.meta as ApiQueryMeta).onError(error as unknown as ErrorIDE)
2424
},
2525
onSuccess(_, query) {
2626
;(query.meta as ApiQueryMeta).onSuccess()

0 commit comments

Comments
 (0)