소스 검색

fix(app): force re-hydration of server configuration atoms on navigation

useHydrateAtoms only hydrates atoms once per store by default, so client-side
navigation after changing admin settings (e.g. page bulk export) left atoms
stale until a full browser refresh. Enable dangerouslyForceHydrate so SSR props
re-apply on every navigation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
tomoyuki-t 1 주 전
부모
커밋
db7b0a5014
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/app/src/pages/general-page/hydrate.ts

+ 1 - 1
apps/app/src/pages/general-page/hydrate.ts

@@ -112,5 +112,5 @@ export const useHydrateGeneralPageConfigurationAtoms = (
           createAtomTuple(disableUserPagesAtom, serverConfig.disableUserPages),
         ];
 
-  useHydrateAtoms(tuples);
+  useHydrateAtoms(tuples, { dangerouslyForceHydrate: true });
 };