Terminate gql subscription on server address change
Otherwise, the subscription is still active for the old server instead of connecting to the new server
This commit is contained in:
@@ -428,6 +428,7 @@ export class RequestManager {
|
||||
|
||||
public reset(): void {
|
||||
this.graphQLClient.client.resetStore();
|
||||
this.graphQLClient.terminateSubscriptions();
|
||||
this.cache.clear();
|
||||
this.imageQueue.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user