From 7a6038f484c1b6af6d308219ed86d82f049ffa04 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Mon, 24 Nov 2025 12:34:50 -0500 Subject: [PATCH] update identity data on revalidate --- components/IdentityProvider.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/IdentityProvider.tsx b/components/IdentityProvider.tsx index 947def39..746d3551 100644 --- a/components/IdentityProvider.tsx +++ b/components/IdentityProvider.tsx @@ -21,6 +21,9 @@ export function IdentityContextProvider(props: { let { data: identity, mutate } = useSWR("identity", () => getIdentityData(), { fallbackData: props.initialValue, }); + useEffect(() => { + mutate(props.initialValue); + }, [props.initialValue]); useEffect(() => { if (!identity?.atp_did) return; let supabase = supabaseBrowserClient(); -- 2.51.2