Explorar o código

use Immutable

reiji-h hai 1 ano
pai
achega
180a256318
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {