CB-4779 mark rows and columns getters as computed values (#2430)

* CB-4779 mark rows and columns getters as computed values

* CB-4779 wrap keys in computed

* CB-4779 remove unused import

---------

Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
alex
2024-03-01 12:23:54 +01:00
committed by GitHub
co-authored by Evgenia Bezborodova
parent b5dceef605
commit 2894b21960
@@ -5,7 +5,7 @@
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
import { action, makeObservable, observable } from 'mobx';
import { action, computed, makeObservable, observable } from 'mobx';
import { DataTypeLogicalOperation, ResultDataFormat, SqlResultColumn } from '@cloudbeaver/core-sdk';
@@ -55,6 +55,10 @@ export class ResultSetViewAction extends DatabaseDataAction<any, IDatabaseResult
makeObservable<this, 'columnsOrder'>(this, {
columnsOrder: observable,
setColumnOrder: action,
rows: computed,
rowKeys: computed,
columns: computed,
columnKeys: computed,
});
}