The activate function is supposed to fail if an error is made by a child component/function call.
example on the metamask connector:
- launch the activate function
- metamask opens with the connection request
- the connection is refused which causes an error
- in the connector we therefore execute:
this.actions.startActivation()
the variable isActivating is reset to false, so we can run the activate function even after refusing the connection
example on the venly connector:
- launch the activate function
- venly connector open a window with the connection request
- we close the new window
- this causes an error in @venly/connect/dist/connect/Flows.js
This does not cause an error in the connector, so we are blocked because if the variable isActivating remains true we cannot execute the activate function.
The activate function is supposed to fail if an error is made by a child component/function call.
example on the metamask connector:
this.actions.startActivation()the variable isActivating is reset to false, so we can run the activate function even after refusing the connection
example on the venly connector:
This does not cause an error in the connector, so we are blocked because if the variable isActivating remains true we cannot execute the activate function.