(query: Query<any, any, any, any>)
| 142 | } |
| 143 | |
| 144 | remove(query: Query<any, any, any, any>): void { |
| 145 | const queryInMap = this.#queries.get(query.queryHash) |
| 146 | |
| 147 | if (queryInMap) { |
| 148 | query.destroy() |
| 149 | |
| 150 | if (queryInMap === query) { |
| 151 | this.#queries.delete(query.queryHash) |
| 152 | } |
| 153 | |
| 154 | this.notify({ type: 'removed', query }) |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | clear(): void { |
| 159 | notifyManager.batch(() => { |
no test coverage detected