apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Option to skip resetStore when setting token with onLogin

Open GeneralistDev opened this issue 7 years ago • 2 comments

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.

This feature request is available on Nuxt community (#c223)

GeneralistDev avatar Aug 12 '19 02:08 GeneralistDev

Added it on v4.0.0-rc.11

kieusonlam avatar Aug 20 '19 13:08 kieusonlam

@kieusonlam the implementation of this feature is incomplete.

The TypeScript typings are missing the new parameter.

jankal avatar Apr 07 '20 09:04 jankal