Skip to content

Commit

Permalink
Refine helpers for Apollo refetch/reset
Browse files Browse the repository at this point in the history
  • Loading branch information
zaiste committed May 16, 2023
1 parent 0b3126c commit 07c6b42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/react/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const useAuthenticatedApolloClient = (opts: Options) => {

return {
apolloClient,
reset: () => apolloClient.refetchQueries({ include: "all" })
reset: () => apolloClient.resetStore(),
refetch: () => apolloClient.refetchQueries({ include: "active" }),
};
};

0 comments on commit 07c6b42

Please sign in to comment.