We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92f5be0 commit 6958d57Copy full SHA for 6958d57
src/lib/react-query/client.ts
@@ -6,6 +6,7 @@ import {
6
type QueryClient,
7
} from '@tanstack/react-query'
8
9
+import { getProjectsQueryKey } from './projects.js'
10
import {
11
baseMutationOptions,
12
baseQueryOptions,
@@ -68,6 +69,9 @@ export function setOwnDeviceInfoMutationOptions({
68
69
queryClient.invalidateQueries({
70
queryKey: getDeviceInfoQueryKey(),
71
})
72
+ queryClient.invalidateQueries({
73
+ queryKey: getProjectsQueryKey(),
74
+ })
75
},
76
} satisfies MutationOptions<
77
void,
0 commit comments