瀏覽代碼

fix: ensure fetchCurrentPage is called with force option when SSR is skipped

Shun Miyazawa 5 月之前
父節點
當前提交
af1a35af77
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/app/src/pages/general-page/use-initial-skip-ssr-fetch.ts

+ 1 - 1
apps/app/src/pages/general-page/use-initial-skip-ssr-fetch.ts

@@ -14,7 +14,7 @@ export const useInitialCSRFetch = (shouldFetch?: boolean): void => {
 
   useEffect(() => {
     if (shouldFetch) {
-      fetchCurrentPage();
+      fetchCurrentPage({ force: true });
     }
   }, [fetchCurrentPage, shouldFetch]);
 };