(query: Query<any, any, any, any>)
| 118 | } |
| 119 | |
| 120 | remove(query: Query<any, any, any, any>): void { |
| 121 | const queryInMap = this.queriesMap[query.queryHash] |
| 122 | |
| 123 | if (queryInMap) { |
| 124 | query.destroy() |
| 125 | |
| 126 | this.queries = this.queries.filter(x => x !== query) |
| 127 | |
| 128 | if (queryInMap === query) { |
| 129 | delete this.queriesMap[query.queryHash] |
| 130 | } |
| 131 | |
| 132 | this.notify({ type: 'queryRemoved', query }) |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | clear(): void { |
| 137 | notifyManager.batch(() => { |
no test coverage detected