Przeglądaj źródła

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

Shun Miyazawa 4 miesięcy temu
rodzic
commit
af1a35af77

+ 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(() => {
   useEffect(() => {
     if (shouldFetch) {
     if (shouldFetch) {
-      fetchCurrentPage();
+      fetchCurrentPage({ force: true });
     }
     }
   }, [fetchCurrentPage, shouldFetch]);
   }, [fetchCurrentPage, shouldFetch]);
 };
 };