mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 01:23:21 +08:00
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:
co-authored by
Evgenia Bezborodova
parent
b5dceef605
commit
2894b21960
+5
-1
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user