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:
schroda
2024-08-25 22:34:01 +02:00
parent 114f9fd34f
commit 08866ace3d
4 changed files with 23 additions and 12 deletions

View File

@@ -428,6 +428,7 @@ export class RequestManager {
public reset(): void {
this.graphQLClient.client.resetStore();
this.graphQLClient.terminateSubscriptions();
this.cache.clear();
this.imageQueue.clear();
}