@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.
- package/dist/{BlockNoteEditor-ZET7ANBC.mjs → BlockNoteEditor-G532N3N7.mjs} +2 -2
- package/dist/{BlockNoteEditor-CJWHJRG3.js → BlockNoteEditor-XWHUG6VH.js} +6 -6
- package/dist/{BlockNoteEditor-CJWHJRG3.js.map → BlockNoteEditor-XWHUG6VH.js.map} +1 -1
- package/dist/billing/index.js +291 -291
- package/dist/billing/index.mjs +1 -1
- package/dist/{chunk-6HQ6CPVL.js → chunk-ALGMJ4JS.js} +180 -172
- package/dist/chunk-ALGMJ4JS.js.map +1 -0
- package/dist/{chunk-3HGZMKT4.mjs → chunk-CWY6AL4V.mjs} +10 -2
- package/dist/chunk-CWY6AL4V.mjs.map +1 -0
- package/dist/client/index.js +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/index.mjs +1 -1
- package/package.json +1 -1
- package/src/hooks/useDataListRetriever.ts +12 -0
- package/dist/chunk-3HGZMKT4.mjs.map +0 -1
- package/dist/chunk-6HQ6CPVL.js.map +0 -1
- /package/dist/{BlockNoteEditor-ZET7ANBC.mjs.map → BlockNoteEditor-G532N3N7.mjs.map} +0 -0
|
@@ -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-
|
|
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-
|
|
15087
|
+
//# sourceMappingURL=chunk-CWY6AL4V.mjs.map
|