[Statsig] Sample router events (#4143)
This commit is contained in:
parent
8cec1679a7
commit
d6625c29d1
3 changed files with 9 additions and 3 deletions
|
@ -611,7 +611,7 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) {
|
|||
linking={LINKING}
|
||||
theme={theme}
|
||||
onStateChange={() => {
|
||||
logEvent('router:navigate', {
|
||||
logEvent('router:navigate:sampled', {
|
||||
from: prevLoggedRouteName.current,
|
||||
})
|
||||
prevLoggedRouteName.current = getCurrentRouteName()
|
||||
|
@ -620,7 +620,7 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) {
|
|||
attachRouteToLogEvents(getCurrentRouteName)
|
||||
logModuleInitTime()
|
||||
onReady()
|
||||
logEvent('router:navigate', {})
|
||||
logEvent('router:navigate:sampled', {})
|
||||
}}>
|
||||
{children}
|
||||
</NavigationContainer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue