Yuki Takei 1 год назад
Родитель
Сommit
8fc33a0e9a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/src/stores/page.tsx

+ 2 - 2
apps/app/src/stores/page.tsx

@@ -285,7 +285,7 @@ export const useSWRxCurrentGrantData = (
     ? ['/page/grant-data', pageId]
     ? ['/page/grant-data', pageId]
     : null;
     : null;
 
 
-  return useSWRImmutable(
+  return useSWR(
     key,
     key,
     ([endpoint, pageId]) => apiv3Get(endpoint, { pageId }).then(response => response.data),
     ([endpoint, pageId]) => apiv3Get(endpoint, { pageId }).then(response => response.data),
   );
   );
@@ -295,7 +295,7 @@ export const useSWRxApplicableGrant = (
     pageId: string | null | undefined,
     pageId: string | null | undefined,
 ): SWRResponse<IRecordApplicableGrant, Error> => {
 ): SWRResponse<IRecordApplicableGrant, Error> => {
 
 
-  return useSWRImmutable(
+  return useSWR(
     pageId != null ? ['/page/applicable-grant', pageId] : null,
     pageId != null ? ['/page/applicable-grant', pageId] : null,
     ([endpoint, pageId]) => apiv3Get(endpoint, { pageId }).then(response => response.data),
     ([endpoint, pageId]) => apiv3Get(endpoint, { pageId }).then(response => response.data),
   );
   );