Skip to content

Commit

Permalink
CB-4779 mark rows and columns getters as computed values (#2430)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
devnaumov and EvgeniaBzzz authored Mar 1, 2024
1 parent b5dceef commit 2894b21
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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,
});
}

Expand Down

0 comments on commit 2894b21

Please sign in to comment.