This commit is contained in:
Niels Lyngsø
2023-01-04 10:36:33 +01:00
parent e8bf7c71a2
commit 463f03b709
2 changed files with 1 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ export class UmbCollectionContext<
private _entityKey: string | null;
private _store?: StoreType;
protected _dataObserver?: UmbObserverController;
protected _dataObserver?: UmbObserverController<DataType[]>;
private _data: BehaviorSubject<Array<DataType>> = new BehaviorSubject(<Array<DataType>>[]);
public readonly data: Observable<Array<DataType>> = this._data.asObservable();

View File

@@ -39,14 +39,6 @@ export class UmbDashboardCollectionElement extends UmbLitElement {
this._collectionContext = new UmbCollectionContext(this, null, manifestMeta.storeAlias);
this.provideContext('umbCollectionContext', this._collectionContext);
}
// TODO: avoid this connection, our own approach on Lit-Controller could be handling this case.
this._collectionContext?.connectedCallback();
}
disconnectedCallback(): void {
super.connectedCallback();
// TODO: avoid this connection, our own approach on Lit-Controller could be handling this case.
this._collectionContext?.disconnectedCallback();
}
render() {