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
I needed a connector that i can pass to config so Im always sure that let say useAccount() gives me predefined particular address. I was under impression that mock connector is exactly what i need but once i use them is see that useAccount() return plenty of undefineds as says that im disconnected. Even though I tried using defaultConnectedset to true. Do I miss something important in how it is suposed to be used or should i do something like
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I needed a connector that i can pass to config so Im always sure that let say
useAccount()
gives me predefined particular address. I was under impression thatmock
connector is exactly what i need but once i use them is see thatuseAccount()
return plenty of undefineds as says that im disconnected. Even though I tried usingdefaultConnected
set to true. Do I miss something important in how it is suposed to be used or should i do something likeBut what then is purpose of mock? I think it would be worth to add some chapter to docs for clarity.
Beta Was this translation helpful? Give feedback.
All reactions