Skip to content

Commit

Permalink
fixup! fix: mf-6071 don't persistent cache my persona info (#11478) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed Mar 5, 2024
1 parent 4f43024 commit 52c1b5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/shared/src/hooks/usePersonaContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ function usePersonaInformation(
queryOwnedPersonaInformation?: (initializedOnly: boolean) => Promise<PersonaInformation[]>,
) {
const { data: personas = EMPTY_LIST, refetch } = useQuery({
queryKey: ['my-own-persona-info'],
queryKey: ['@@my-own-persona-info'],
queryFn: () => queryOwnedPersonaInformation?.(false),
refetchOnMount: true,
networkMode: 'always',
})
useEffect(() => MaskMessages.events.ownPersonaChanged.on(() => refetch()), [])

Expand Down

0 comments on commit 52c1b5a

Please sign in to comment.