瀏覽代碼

add hackme comment

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);