fix: alias not updating
This commit is contained in:
parent
474b66bbff
commit
41b333e5cf
@ -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,
|
||||
|
@ -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(
|
||||
|
@ -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 (
|
||||
|
@ -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(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user