Adjust datalake abstraction

(cherry picked from commit 8ba6a8d45b1bd5698afbd06d9e858a91789f0ea6)
This commit is contained in:
Eric Bailey
2025-02-28 11:38:17 -06:00
parent 36a7a8d8c6
commit e43b74d34d
3 changed files with 27 additions and 13 deletions
+8 -4
View File
@@ -729,16 +729,20 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) {
linking={LINKING}
theme={theme}
onStateChange={() => {
logEvent('lake:router:navigate', {
from: prevLoggedRouteName.current,
})
logEvent(
'router:navigate',
{
from: prevLoggedRouteName.current,
},
{lake: true},
)
prevLoggedRouteName.current = getCurrentRouteName()
}}
onReady={() => {
attachRouteToLogEvents(getCurrentRouteName)
logModuleInitTime()
onReady()
logEvent('lake:router:navigate', {})
logEvent('router:navigate', {}, {lake: true})
}}>
{children}
</NavigationContainer>