diff options
author | dan <dan.abramov@gmail.com> | 2024-05-21 04:28:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 20:28:12 -0700 |
commit | d6625c29d17b8c614b20378c2681b4774d7dd71f (patch) | |
tree | df5e33649dc4b6b58bdc2e3f0fc5f3651b817c81 /src/Navigation.tsx | |
parent | 8cec1679a718e0cc6da67cf2604e6be8e9dab9a7 (diff) | |
download | voidsky-d6625c29d17b8c614b20378c2681b4774d7dd71f.tar.zst |
[Statsig] Sample router events (#4143)
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 7abfaec08..23cf5f59d 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -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> |