feat: compare two page versions (#2385)

This commit is contained in:
Philip Okugbe
2026-08-12 12:31:02 +01:00
committed by GitHub
parent a0b2ac6ae3
commit 737cd67965
14 changed files with 486 additions and 115 deletions
@@ -23,6 +23,14 @@ export function prefetchPageHistory(historyId: string) {
});
}
export function fetchPageHistory(historyId: string): Promise<IPageHistory> {
return queryClient.fetchQuery({
queryKey: ["page-history", historyId],
queryFn: () => getPageHistoryById(historyId),
staleTime: HISTORY_STALE_TIME,
});
}
export function usePageHistoryListQuery(
pageId: string,
): UseInfiniteQueryResult<InfiniteData<IPagination<IPageHistory>, unknown>> {