fix: alias not updating

This commit is contained in:
Matthew Russell 2024-03-07 15:02:47 +00:00
parent 474b66bbff
commit 41b333e5cf
No known key found for this signature in database
4 changed files with 6 additions and 3 deletions

View File

@ -170,6 +170,9 @@ const cacheConfig: InMemoryCacheConfig = {
Fees: {
keyFields: false,
},
PartyProfile: {
keyFields: ['partyId'],
},
// The folling types are cached by the data provider and not by apollo
PositionUpdate: {
keyFields: false,

View File

@ -32,9 +32,7 @@ export const ProfileDialog = () => {
const setOpen = useProfileDialogStore((store) => store.setOpen);
const { send, status, error, reset } = useSimpleTransaction({
onSuccess: () => {
refetch();
},
onSuccess: () => refetch(),
});
const profileEdge = data?.partiesProfilesConnection?.edges.find(

View File

@ -147,6 +147,7 @@ const KeypairRadioGroup = ({
const { data } = usePartyProfilesQuery({
variables: { partyIds: pubKeys.map((pk) => pk.publicKey) },
skip: pubKeys.length <= 0,
fetchPolicy: 'cache-and-network',
});
return (

View File

@ -28,6 +28,7 @@ export const VegaWalletMenu = ({
const { data } = usePartyProfilesQuery({
variables: { partyIds: pubKeys.map((pk) => pk.publicKey) },
skip: pubKeys.length <= 0,
fetchPolicy: 'cache-and-network',
});
const activeKey = useMemo(() => {