apollo icon indicating copy to clipboard operation
apollo copied to clipboard

ApolloClient.setLink is not a function

Open benams opened this issue 4 years ago • 0 comments

Describe the bug When I try to use setLink function, I get an error: "ApolloClient.setLink is not a function".

apolloClient = new ApolloClient({ cache, link })
apolloClient.setLink(link2)

I would expect this function to be a part of ApolloClient, so I can "refresh" my link (to add or remove WS link for example).

Versions vue: 2.6.12 vue-apollo: 3.0.5 apollo-client: 2.6.10

benams avatar Feb 28 '21 15:02 benams