The primary idea of this hook is to re-create the underlying ApolloClient being used by all of the Subscription
and Query
components. There is lots of talk throughout the Apollo community about how to best refresh a WebSocket connection when a new auth token is available, and this is my attempt at providing something useful, apart from middleware that seems to have issues.
Related Links