apollo
apollo copied to clipboard
Option to skip resetStore when setting token with onLogin
What problem does this feature solve?
For short-lived tokens, this causes any in-flight requests to be cancelled due to the resetStore() call in the onLogin function.
What does the proposed changes look like?
Add an additional argument to skip store reset when calling onLogin and onLogout.
Added it on v4.0.0-rc.11
@kieusonlam the implementation of this feature is incomplete.
The TypeScript typings are missing the new parameter.