Hooks
useDynamicEvents
Summary
The useDynamicEvents hook can be used to subscribe to events emitted by Dynamic.
Usage
Available function and states
Event | Arguments | Description |
---|---|---|
walletAdded | newWallet: Wallet | Called whenever a wallet is added to the user profile |
Example
import { useDynamicEvents } from "@dynamic-labs/sdk-react-core";
const useDynamicEventsExample = () => {
useDynamicEvents("walletAdded", async (newWallet) => {
console.log(newWallet);
});
};
Was this page helpful?