Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

No defaultOptions support for subscriptions #12957

Copy link
Copy link
@fabis94

Description

@fabis94
Issue body actions

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!

danielgak, bimgeek, iainsproat and Mikehrn

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.