2
0
Yuken Tezuka 3 жил өмнө
parent
commit
3b818efb5f

+ 2 - 3
packages/app/src/stores/page.tsx

@@ -179,8 +179,6 @@ export const useCurrentPagePath = (): SWRResponse<string | undefined, Error> =>
   const { data: currentPage } = useSWRxCurrentPage();
   const { data: currentPage } = useSWRxCurrentPage();
   const { data: currentPathname } = useCurrentPathname();
   const { data: currentPathname } = useCurrentPathname();
 
 
-  const fallbackData = (currentPathname != null && !_isPermalink(currentPathname)) ? currentPathname : undefined;
-
   return useSWRImmutable(
   return useSWRImmutable(
     ['currentPagePath', currentPage?.path, currentPathname],
     ['currentPagePath', currentPage?.path, currentPathname],
     (key: Key, pagePath: string|undefined, pathname: string|undefined) => {
     (key: Key, pagePath: string|undefined, pathname: string|undefined) => {
@@ -192,7 +190,8 @@ export const useCurrentPagePath = (): SWRResponse<string | undefined, Error> =>
       }
       }
       return undefined;
       return undefined;
     },
     },
-    { fallbackData },
+    // TODO: set fallbackData
+    // { fallbackData:  },
   );
   );
 };
 };