@tsed/react-formio 2.1.1 → 2.1.2

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/dist/index.js CHANGED
@@ -917,6 +917,9 @@ function useCustomTable(props) {
917
917
  var _useState = React.useState(data),
918
918
  records = _useState[0],
919
919
  setRecords = _useState[1];
920
+ React.useEffect(function () {
921
+ setRecords(data);
922
+ }, [data]);
920
923
  var _onDrag = function _onDrag(dragIndex, hoverIndex) {
921
924
  var newRecords = swapElements([].concat(records), dragIndex, hoverIndex);
922
925
  setRecords(newRecords);