-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add emitter event on location change #304
Conversation
packages/widget/src/types/events.ts
Outdated
@@ -30,6 +31,7 @@ export type WidgetEvents = { | |||
reviewTransactionPageEntered?: Route; | |||
walletConnected: WalletConnected; | |||
widgetExpanded: boolean; | |||
page: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's create a union type from navigationRoutes
constant instead of string that lists all relevant pages we would like to track, except maybe home
? Let me please know what do you think :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ticket: https://lifi.atlassian.net/browse/LF-10006