fix: remove warnings

This commit is contained in:
ascarbek 2023-03-06 11:35:23 +06:00
parent 88eeb6bd36
commit 557a524648
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,8 @@ export const useCell = (cellIdentifier: CellIdentifier, cellCache: CellCache, fi
},
});
cellController.getCellData();
// ignore the return value, because we are using the subscription
void cellController.getCellData();
};
return {

View File

@ -55,7 +55,7 @@ export class CellController<T, D> {
});
}
subscribeChanged = async (callbacks: Callbacks<T>) => {
subscribeChanged = (callbacks: Callbacks<T>) => {
this.subscribeCallbacks = callbacks;
this.cellDataNotifier.observer.subscribe((cellData) => {
if (cellData !== null) {