You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's take the example of user identity (from store),
on fetchIdentity action I would call let's say fetchIdentity method from IdentityService.
asyncfetchIdentity({ dispatch }: any,address: string){const{ api }=Connector.getInstance()try{constoptionIdentity=awaitapi?.isReady.then((a)=>a?.query.identity?.identityOf(address))constidentity=optionIdentity?.unwrapOr(null)if(identity){dispatch('setIdentity',{ address, identity })}}catch(e){consola.error('[FETCH IDENTITY] Unable to get identity',e)}},
following from @roiLeo comment here:
Here's the original comment:
I'd like to ask @roiLeo to provide additional information here if possible, I'm out of my depth with regards to services
The text was updated successfully, but these errors were encountered: