فهرست منبع

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]);
 };