diff --git a/src/lib/react-query/client.ts b/src/lib/react-query/client.ts index 5c932b0..c5830f4 100644 --- a/src/lib/react-query/client.ts +++ b/src/lib/react-query/client.ts @@ -6,6 +6,7 @@ import { type QueryClient, } from '@tanstack/react-query' +import { getProjectsQueryKey } from './projects.js' import { baseMutationOptions, baseQueryOptions, @@ -68,6 +69,9 @@ export function setOwnDeviceInfoMutationOptions({ queryClient.invalidateQueries({ queryKey: getDeviceInfoQueryKey(), }) + queryClient.invalidateQueries({ + queryKey: getProjectsQueryKey(), + }) }, } satisfies MutationOptions< void,