Browse Source

use Immutable

reiji-h 1 year ago
parent
commit
180a256318
1 changed files with 1 additions and 1 deletions
  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 {