فهرست منبع

use Immutable

reiji-h 1 سال پیش
والد
کامیت
180a256318
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/app/src/stores/page-listing.tsx

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

@@ -197,7 +197,7 @@ export const useSWRxPageAncestorsChildren = (
     assert(keyMatcherForPageTree(key));
     assert(keyMatcherForPageTree(key));
   }
   }
 
 
-  return useSWR(
+  return useSWRImmutable(
     key,
     key,
     ([, endpoint, path]) => apiv3Get(endpoint, { path }).then((response) => {
     ([, endpoint, path]) => apiv3Get(endpoint, { path }).then((response) => {
       return {
       return {