-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
Even on the latest version (Apollo Client v4.07) there's no defaultOptions
support for subscriptions:
apollo-client/src/core/ApolloClient.ts
Line 1011 in 231de94
public subscribe< |
If you look at mutate() and query(), those do:
apollo-client/src/core/ApolloClient.ts
Line 979 in 231de94
this.defaultOptions.mutate |
A very obvious oversight! Wanted to set a custom errorPolicy for all subs, now I can't do this and have to set it manually for all of them...
There was an older issue for this already: #11411
People suggested creating wrappers, but that's horrible DX. Should not have to create wrappers for this!
danielgak, bimgeek, iainsproat and Mikehrn
Metadata
Metadata
Assignees
Labels
No labels