watchConnection
Subscribe to changes to the active connection
Import
Usage
Parameters
config
AlchemyAccountsConfig
the account config
Returns
(onChange: (connection: Connection) => void) => (() => void)
a function which accepts an onChange callback that will be fired when the connection changes and returns a function to unsubscribe from the store