Skip to content

Commit 6958d57

Browse files
authored
fix: updating own device info should invalidate reads related to project members (#30)
1 parent 92f5be0 commit 6958d57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/react-query/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
type QueryClient,
77
} from '@tanstack/react-query'
88

9+
import { getProjectsQueryKey } from './projects.js'
910
import {
1011
baseMutationOptions,
1112
baseQueryOptions,
@@ -68,6 +69,9 @@ export function setOwnDeviceInfoMutationOptions({
6869
queryClient.invalidateQueries({
6970
queryKey: getDeviceInfoQueryKey(),
7071
})
72+
queryClient.invalidateQueries({
73+
queryKey: getProjectsQueryKey(),
74+
})
7175
},
7276
} satisfies MutationOptions<
7377
void,

0 commit comments

Comments
 (0)