Stay up-to-date with widget events
useWidgetEvents
hook that lets you subscribe to a series of widget events and helps you retrieve helpful information about executing routes, track bridge and swap progress, track selection of chains and tokens, interactions with specific UI elements, and more.
We continue working on extending available events and If you are interested in a specific event, reach out via our support.
To minimize unnecessary re-renders and prevent potential glitches in the main Widget component, please integrate the useWidgetEvents
hook outside of the component where the main LiFiWidget
is integrated.
Example of how to subscribe to widget events:
useWidgetEvents
hook.