@fuels/react - create connectAsync method on usConnectUI
luizstacio opened this issue · 0 comments
luizstacio commented
With usConnect
users are able to chose between a connectAsync
or connect
this is useful when applications want to integrate the connection of a wallet in the middle of a specific flow. One example is the sway-playground where the connection is integrated on the flow of the deploy.
But currently usConnectUI
does not support a async connect method. We should create a new method and all the logic to support connectAsync also on the connect ui.
On this Task;
- Implement
connectAsync
forusConnectUI
- Once users trigger
connectAsync
it should resolve; - If user selects a wallet and connects return true;
- If user selects a wallet but a error happens reject with error;
- If user closes the Connector Selection UI resolves to false;