|
|
@@ -29,7 +29,7 @@ export const useSWRxPage = (
|
|
|
revisionId?: string,
|
|
|
initialData?: IPagePopulatedToShowRevision|null,
|
|
|
): SWRResponse<IPagePopulatedToShowRevision|null, Error> => {
|
|
|
- const swrResponse = useSWR<IPagePopulatedToShowRevision|null, Error>(
|
|
|
+ const swrResponse = useSWRImmutable<IPagePopulatedToShowRevision|null, Error>(
|
|
|
pageId != null ? ['/page', pageId, shareLinkId, revisionId] : null,
|
|
|
(endpoint, pageId, shareLinkId, revisionId) => apiv3Get<{ page: IPagePopulatedToShowRevision }>(endpoint, { pageId, shareLinkId, revisionId })
|
|
|
.then(result => result.data.page)
|