From 11616846caa69ee1b2eacc87e1e307b47df223a5 Mon Sep 17 00:00:00 2001
From: Samuel Newman <mozzius@protonmail.com>
Date: Fri, 14 Feb 2025 19:50:08 +0000
Subject: Reenable router events (#7735)

* reenable router events

* remove  field
---
 src/Navigation.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'src/Navigation.tsx')

diff --git a/src/Navigation.tsx b/src/Navigation.tsx
index 0dcce98bf..709a7b9ff 100644
--- a/src/Navigation.tsx
+++ b/src/Navigation.tsx
@@ -721,15 +721,16 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) {
       linking={LINKING}
       theme={theme}
       onStateChange={() => {
-        const routeName = getCurrentRouteName()
-        if (routeName === 'Notifications') {
-          logEvent('router:navigate:notifications', {})
-        }
+        logEvent('lake:router:navigate', {
+          from: prevLoggedRouteName.current,
+        })
+        prevLoggedRouteName.current = getCurrentRouteName()
       }}
       onReady={() => {
         attachRouteToLogEvents(getCurrentRouteName)
         logModuleInitTime()
         onReady()
+        logEvent('lake:router:navigate', {})
       }}>
       {children}
     </NavigationContainer>
-- 
cgit 1.4.1

