From 36d9ea66d3b4202bf839af124604c6fcb2c34af5 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Mon, 31 Aug 2026 02:36:42 +0330 Subject: [PATCH] fix(profile): enable always refetchOnMount to guarantee live backend state sync on mount --- src/hooks/marriage/use-profile-main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/marriage/use-profile-main.ts b/src/hooks/marriage/use-profile-main.ts index 02c5462..09f1e9c 100644 --- a/src/hooks/marriage/use-profile-main.ts +++ b/src/hooks/marriage/use-profile-main.ts @@ -154,6 +154,7 @@ export function useMarriageProfileQuery( const query = useQuery({ staleTime: 30 * 1000, + refetchOnMount: "always", refetchOnWindowFocus: false, initialData: getInitialMarriageProfile as any, initialDataUpdatedAt: 0,