@carlonicora/nextjs-jsonapi 1.29.3 → 1.29.4

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.
@@ -180,6 +180,7 @@ function useDataListRetriever(params) {
180
180
  const requestIdRef = useRef(0);
181
181
  const abortControllerRef = useRef(null);
182
182
  const isFetchingRef = useRef(false);
183
+ const isPaginatingRef = useRef(false);
183
184
  const resolvedType = params.module;
184
185
  const resolvedService = ClientAbstractService;
185
186
  const parsePageParams = useCallback2((url) => {
@@ -235,7 +236,13 @@ function useDataListRetriever(params) {
235
236
  const fetchData = useCallback2(
236
237
  async (fetchParams) => {
237
238
  if (ready === false) return;
239
+ if ((fetchParams?.callNext || fetchParams?.callPrevious) && isPaginatingRef.current) {
240
+ return;
241
+ }
238
242
  if (isFetchingRef.current && !fetchParams?.callNext && !fetchParams?.callPrevious) return;
243
+ if (fetchParams?.callNext || fetchParams?.callPrevious) {
244
+ isPaginatingRef.current = true;
245
+ }
239
246
  const thisRequestId = ++requestIdRef.current;
240
247
  isFetchingRef.current = true;
241
248
  if (stableParams.requiresSearch === true && fetchParams?.isRefine !== true && fetchParams?.isRefresh !== true) {
@@ -299,6 +306,7 @@ function useDataListRetriever(params) {
299
306
  } finally {
300
307
  if (thisRequestId === requestIdRef.current) {
301
308
  isFetchingRef.current = false;
309
+ isPaginatingRef.current = false;
302
310
  }
303
311
  }
304
312
  },
@@ -11121,7 +11129,7 @@ __name(AllowedUsersDetails, "AllowedUsersDetails");
11121
11129
  import dynamic from "next/dynamic";
11122
11130
  import React15 from "react";
11123
11131
  import { jsx as jsx122 } from "react/jsx-runtime";
11124
- var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-ZET7ANBC.mjs"), {
11132
+ var BlockNoteEditor = dynamic(() => import("./BlockNoteEditor-G532N3N7.mjs"), {
11125
11133
  ssr: false
11126
11134
  });
11127
11135
  var BlockNoteEditorContainer = React15.memo(/* @__PURE__ */ __name(function EditorContainer(props) {
@@ -15076,4 +15084,4 @@ export {
15076
15084
  useOAuthClients,
15077
15085
  useOAuthClient
15078
15086
  };
15079
- //# sourceMappingURL=chunk-3HGZMKT4.mjs.map
15087
+ //# sourceMappingURL=chunk-CWY6AL4V.mjs.map