Skip to content

subscribeToMore does not send the subscription query to the server  #462

Closed
@karlito40

Description

@karlito40

Hi, i am experiencing a weird issue with the subscribeToMore functionality which won't send the subscription query to the server.

comment removed as i found the source of the problem

Actually this is a bug when you use vue-apollo inside vue-supply. As vue-apollo is share across component with vue-supply the subscribeToMore method will not work on some occasion.

The bug is easily reproductible. You have to make one supply with a subscribeToMore method from vue-apollo and then execute the query on two separate component. The second request will unsubscribe to all subscription ever use before on the same query. I'm not sure to be clear so i will provide a codesandbox soon.

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