diff options
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index cf09406a6..baf99f110 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -32,6 +32,7 @@ import { import {RouteParams, State} from '#/lib/routes/types' import {attachRouteToLogEvents, logEvent} from '#/lib/statsig/statsig' import {bskyTitle} from '#/lib/strings/headings' +import {logger} from '#/logger' import {isNative, isWeb} from '#/platform/detection' import {useModalControls} from '#/state/modals' import {useUnreadNotifications} from '#/state/queries/notifications/unread' @@ -729,7 +730,7 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) { linking={LINKING} theme={theme} onStateChange={() => { - logEvent('lake:router:navigate', { + logger.metric('router:navigate', { from: prevLoggedRouteName.current, }) prevLoggedRouteName.current = getCurrentRouteName() @@ -738,7 +739,7 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) { attachRouteToLogEvents(getCurrentRouteName) logModuleInitTime() onReady() - logEvent('lake:router:navigate', {}) + logger.metric('router:navigate', {}) }}> {children} </NavigationContainer> |