Yuki Takei 1 سال پیش
والد
کامیت
2751e600fa
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      apps/app/src/stores/ui.tsx

+ 3 - 1
apps/app/src/stores/ui.tsx

@@ -516,8 +516,10 @@ export const useIsUntitledPage = (): SWRResponse<boolean> => {
 
   const { data: pageId } = useCurrentPageId();
 
-  return useSWRImmutable(
+  return useSWRStatic(
     pageId == null ? null : [key, pageId],
+    undefined,
+    { fallbackData: false },
   );
 
 };