Jelajahi Sumber

use Immutable

reiji-h 1 tahun lalu
induk
melakukan
180a256318
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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));
   }
 
-  return useSWR(
+  return useSWRImmutable(
     key,
     ([, endpoint, path]) => apiv3Get(endpoint, { path }).then((response) => {
       return {