about summary refs log tree commit diff
path: root/src/Navigation.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-05-21 04:28:12 +0100
committerGitHub <noreply@github.com>2024-05-20 20:28:12 -0700
commitd6625c29d17b8c614b20378c2681b4774d7dd71f (patch)
treedf5e33649dc4b6b58bdc2e3f0fc5f3651b817c81 /src/Navigation.tsx
parent8cec1679a718e0cc6da67cf2604e6be8e9dab9a7 (diff)
downloadvoidsky-d6625c29d17b8c614b20378c2681b4774d7dd71f.tar.zst
[Statsig] Sample router events (#4143)
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r--src/Navigation.tsx4
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>