@apia/table 4.0.37 → 4.0.41

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
@@ -2782,6 +2782,10 @@ const NoMemoPagination = ({
2782
2782
  const [lastEmittedPage, setLastEmittedPage] = useState(
2783
2783
  numberCurrentPage ?? 1
2784
2784
  );
2785
+ const previousPage = usePrevious(props.currentPage);
2786
+ if (previousPage.current !== props.currentPage) {
2787
+ setLastEmittedPage(props.currentPage);
2788
+ }
2785
2789
  const setCurrentAndDispatch = useCallback(
2786
2790
  (page) => {
2787
2791
  if (page !== lastEmittedPage) {