How to use the @web3-react/types.ConnectorEvent.Deactivate function in @web3-react/types

To help you get started, we’ve selected a few @web3-react/types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NoahZinsmeister / web3-react / packages / core / src / manager.ts View on Github external
return () => {
      if (connector) {
        connector
          .off(ConnectorEvent.Update, handleUpdate)
          .off(ConnectorEvent.Error, handleError)
          .off(ConnectorEvent.Deactivate, handleDeactivate)
      }
    }
  }, [connector, handleUpdate, handleError, handleDeactivate])

@web3-react/types

GPL-3.0
Latest version published 1 year ago

Package Health Score

63 / 100
Full package analysis