Browse Source

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

Shun Miyazawa 5 months ago
parent
commit
af1a35af77
1 changed files with 1 additions and 1 deletions
  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]);
 };