I\'m trying to reset the store after logout in my react-apollo application.
So I\'ve created a method called \"logout\" which is called when I click on a button (and pas
you can use useApolloClient to access apollo client.
useApolloClient
import { useApolloClient } from "@apollo/client"; const client = useApolloClient(); client.clearStore();