sliftutils 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -4,6 +4,7 @@ import { formatValue, JSXFormatter, toSpaceCase } from "./GenericFormat";
4
4
  import { observer } from "./observer";
5
5
  import { canHaveChildren } from "socket-function/src/types";
6
6
  import { showFullscreenModal } from "./FullscreenModal";
7
+ import { observable } from "mobx";
7
8
 
8
9
  // Null means the column is removed
9
10
  export type ColumnType<T = unknown, Row extends RowType = RowType> = undefined | null | {
@@ -35,9 +36,9 @@ export class Table<RowT extends RowType> extends preact.Component<TableType<RowT
35
36
 
36
37
  getRowFields?: (row: RowT) => preact.JSX.HTMLAttributes<HTMLTableRowElement>;
37
38
  }> {
38
- state = {
39
+ state = observable({
39
40
  limit: this.props.initialLimit || 100,
40
- };
41
+ });
41
42
  render() {
42
43
  let { columns, rows, excludeEmptyColumns } = this.props;
43
44