Reenable router events (#7735)

* reenable router events

* remove  field
This commit is contained in:
Samuel Newman
2025-02-14 19:50:08 +00:00
committed by GitHub
parent a14704ddfe
commit 11616846ca
2 changed files with 8 additions and 5 deletions
+5 -4
View File
@@ -721,15 +721,16 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) {
linking={LINKING}
theme={theme}
onStateChange={() => {
const routeName = getCurrentRouteName()
if (routeName === 'Notifications') {
logEvent('router:navigate:notifications', {})
}
logEvent('lake:router:navigate', {
from: prevLoggedRouteName.current,
})
prevLoggedRouteName.current = getCurrentRouteName()
}}
onReady={() => {
attachRouteToLogEvents(getCurrentRouteName)
logModuleInitTime()
onReady()
logEvent('lake:router:navigate', {})
}}>
{children}
</NavigationContainer>
+3 -1
View File
@@ -30,7 +30,9 @@ export type LogEvents = {
secondsActive: number
}
'state:foreground': {}
'router:navigate:notifications': {}
'lake:router:navigate': {
from?: string
}
'deepLink:referrerReceived': {
to: string
referrer: string