@nokecy/qc-ui 0.0.10 → 0.0.11

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.
@@ -148,6 +148,9 @@ function AgGridPlus(props) {
148
148
  });
149
149
  }
150
150
  }, [gridColumnState, columnsRef.current]);
151
+ (0, _react.useEffect)(function () {
152
+ setRowData(dataSource || rowData);
153
+ }, [dataSource, rowData]);
151
154
  var onGridReady = (0, _react.useCallback)(function (params) {
152
155
  apiRef.current = params.api;
153
156
  columnsRef.current = params.columnApi;
@@ -121,6 +121,9 @@ function AgGridPlus(props) {
121
121
  });
122
122
  }
123
123
  }, [gridColumnState, columnsRef.current]);
124
+ useEffect(function () {
125
+ setRowData(dataSource || rowData);
126
+ }, [dataSource, rowData]);
124
127
  var onGridReady = useCallback(function (params) {
125
128
  apiRef.current = params.api;
126
129
  columnsRef.current = params.columnApi;