Yuki Takei 1 rok temu
rodzic
commit
2751e600fa
1 zmienionych plików z 3 dodań i 1 usunięć
  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 },
   );
 
 };