Shun Miyazawa 2 лет назад
Родитель
Сommit
3f7a659c95
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      apps/app/src/stores/page.tsx

+ 1 - 0
apps/app/src/stores/page.tsx

@@ -47,6 +47,7 @@ export const useTemplateBodyData = (initialData?: string): SWRResponse<string, E
   return useStaticSWR<string, Error>('templateBodyData', initialData);
 };
 
+/** "useSWRxCurrentPage" is intended for initial data retrieval only. Use "useSWRMUTxCurrentPage" for revalidation */
 export const useSWRxCurrentPage = (initialData?: IPagePopulatedToShowRevision|null): SWRResponse<IPagePopulatedToShowRevision|null> => {
   const key = 'currentPage';