Преглед изворни кода

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

Shun Miyazawa пре 4 месеци
родитељ
комит
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]);
 };