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
It will be good UX if it redirects you to required action next, like when you click mint it will give you MetaMask pop up, you connect, and then it will automatically open mint modal you don't need to press mint button again.
It can done in two ways
Callback
Promise(Preferred)
And can be done via introducing new function in context like withContext which calls the callback (resolves in case of promise) with the web3 provider in it
Also there is issue with context, it rerenders everything who is consumer of it, so we can lost the action callback. But we can tackle this by removing all states and using React Ref when possible, but again we cannot always use React Ref, like Wallet Address state Originally posted by @thisisommore in #63 (comment)
The text was updated successfully, but these errors were encountered:
It will be good UX if it redirects you to required action next, like when you click mint it will give you MetaMask pop up, you connect, and then it will automatically open mint modal you don't need to press mint button again.
It can done in two ways
And can be done via introducing new function in context like
withContext
which calls the callback (resolves in case of promise) with the web3 provider in itAlso there is issue with context, it rerenders everything who is consumer of it, so we can lost the action callback. But we can tackle this by removing all states and using React Ref when possible, but again we cannot always use React Ref, like Wallet Address state
Originally posted by @thisisommore in #63 (comment)
The text was updated successfully, but these errors were encountered: