Hooks
useDynamicEvents
Summary
The useDynamicEvents hook can be used to subscribe to events emitted by Dynamic.
Usage
Available function and states
Event | Arguments | Description |
---|---|---|
primaryWalletChanged | newPrimaryWallet: Wallet | Called whenever the primary wallet changes |
primaryWalletNetworkChanged | newNetwork: number | string | Called whenever the primary wallet network changes |
walletAdded | newWallet: Wallet | Called whenever a wallet is added to the user profile |
Example
Was this page helpful?