Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Oct 19, 2023
1 parent 9e3dc04 commit a4950ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/client/src/hooks/use-invalidate-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function useInvalidateQuery<T extends unknown[]>(queryKeyParts: T) {
const query = queries.find((q) => queryKeyParts.every((k) => q.queryKey.includes(k)));

async function invalidateQuery() {
await queryClient.invalidateQueries(query?.queryKey);
await queryClient.invalidateQueries({ queryKey: query?.queryKey });
return queryKeyParts;
}

Expand Down

0 comments on commit a4950ae

Please sign in to comment.