Taichi Masuyama преди 3 години
родител
ревизия
4dcf3d0bcd
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      packages/app/src/stores/page-listing.tsx

+ 1 - 0
packages/app/src/stores/page-listing.tsx

@@ -153,6 +153,7 @@ export const useSWRxPageAncestorsChildren = (
 ): SWRResponse<AncestorsChildrenResult, Error> => {
   const { data: termNumber } = usePageTreeTermManager();
 
+  // HACKME: Consider using global mutation from useSWRConfig and not to use term number -- 2022/12/08 @hakumizuki
   const prevTermNumber = termNumber ? termNumber - 1 : 0;
   const prevSWRRes = useSWRImmutable(path ? [`/page-listing/ancestors-children?path=${path}`, prevTermNumber] : null);