Apollo React - `useMutation` in ApolloClient setup?
问题 I have an interesting situation. I want to initiate refresh token request USING Apollo itself (a.k.a to call a mutation) Any idea, how to achieve something like this? export default new ApolloClient({ link: ApolloLink.from([ onError(({ graphQLErrors, networkError, operation, forward }) => { // useMutation(REFRESH_ACCESS_TOKEN) }), ]), new HttpLink({...}), }) Basically I'm just trying to useMutation(REFRESH_ACCESS_TOKEN) inside onError while creating new ApolloClient instance. The problem: