The useDynamicEvents hook can be used to subscribe to events emitted by Dynamic.
Available function and states
newWallet: Wallet
import { useDynamicEvents } from "@dynamic-labs/sdk-react-core"; const useDynamicEventsExample = () => { useDynamicEvents("walletAdded", async (newWallet) => { console.log(newWallet); }); };
Was this page helpful?