Skip to content

No defaultOptions support for subscriptions #12957

@fabis94

Description

@fabis94

Even on the latest version (Apollo Client v4.07) there's no defaultOptions support for subscriptions:

public subscribe<

If you look at mutate() and query(), those do:

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions