@bluemarble/bm-components 1.6.0 → 1.7.1

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.mjs CHANGED
@@ -4701,6 +4701,7 @@ function useGrid({
4701
4701
  );
4702
4702
  const [currentPage, setCurrentPage] = useState6(defaultCurrentPage || 0);
4703
4703
  const [rowsPerPage, setRowsPerPage] = useState6(rowsPerPageOptions[0]);
4704
+ const [updatedTimes, setUpdatedTimes] = useState6(0);
4704
4705
  const toggleSortedDirection = useCallback5(
4705
4706
  (direction) => {
4706
4707
  if (direction === "asc")
@@ -4740,6 +4741,7 @@ function useGrid({
4740
4741
  [toggleSortedDirection, sortedBy]
4741
4742
  );
4742
4743
  const set = useCallback5((data) => {
4744
+ setUpdatedTimes((prev) => prev + 1);
4743
4745
  setDefaultData(data);
4744
4746
  }, []);
4745
4747
  const sortData = useCallback5(
@@ -4793,6 +4795,7 @@ function useGrid({
4793
4795
  const totalNumberOfPages = Math.ceil(filteredData.length / rowsPerPage) - 1;
4794
4796
  return {
4795
4797
  data: displayData,
4798
+ updatedTimes,
4796
4799
  set,
4797
4800
  onSortBy,
4798
4801
  sortedBy,