Skip to content

Commit f5cec41

Browse files
author
Nicolas Dorseuil
committed
fix rebase
1 parent 26d7906 commit f5cec41

File tree

1 file changed

+14
-12
lines changed
  • packages/gitbook-v2/src/lib/data

1 file changed

+14
-12
lines changed

packages/gitbook-v2/src/lib/data/api.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,9 @@ const getRevisionPageMarkdown = withCacheKey(
447447
);
448448

449449
const getRevisionPageDocument = withCacheKey(
450-
withoutConcurrentExecution(
450+
withoutConcurrentRequestExecution(
451451
async (
452-
_,
452+
cacheKey,
453453
input: DataFetcherInput,
454454
params: { spaceId: string; revisionId: string; pageId: string }
455455
) => {
@@ -459,16 +459,18 @@ const getRevisionPageDocument = withCacheKey(
459459
async () => {
460460
return wrapDataFetcherError(async () => {
461461
const api = apiClient(input);
462-
const res = await api.spaces.getPageDocumentInRevisionById(
463-
params.spaceId,
464-
params.revisionId,
465-
params.pageId,
466-
{
467-
evaluated: true,
468-
},
469-
{
470-
...noCacheFetchOptions,
471-
}
462+
const res = await withoutConcurrentProcessExecution(cacheKey, async () =>
463+
api.spaces.getPageDocumentInRevisionById(
464+
params.spaceId,
465+
params.revisionId,
466+
params.pageId,
467+
{
468+
evaluated: true,
469+
},
470+
{
471+
...noCacheFetchOptions,
472+
}
473+
)
472474
);
473475

474476
cacheTag(...getCacheTagsFromResponse(res));

0 commit comments

Comments
 (0)