remove host on destroy

This commit is contained in:
Niels Lyngsø
2024-04-10 21:57:50 +02:00
parent 0fb0990a3d
commit 2d6f3c9189

View File

@@ -170,6 +170,7 @@ export class UmbContextConsumer<BaseType = unknown, ResultType extends BaseType
public destroy(): void {
this.hostDisconnected();
this._host = undefined as any;
this.#callback = undefined;
this.#promise = undefined;
this.#promiseResolver = undefined;