Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Statsig] Send prev route name (#3456)

authored by

dan and committed by
GitHub
d89b6eb7 c300d4ca

+6 -1
+6 -1
src/Navigation.tsx
··· 539 539 const theme = useColorSchemeStyle(DefaultTheme, DarkTheme) 540 540 const {currentAccount} = useSession() 541 541 const {openModal} = useModalControls() 542 + const prevLoggedRouteName = React.useRef<string | undefined>(undefined) 542 543 543 544 function onReady() { 545 + prevLoggedRouteName.current = getCurrentRouteName() 544 546 initAnalytics(currentAccount) 545 547 546 548 if (currentAccount && shouldRequestEmailConfirmation(currentAccount)) { ··· 555 557 linking={LINKING} 556 558 theme={theme} 557 559 onStateChange={() => { 558 - logEvent('router:navigate', {}) 560 + logEvent('router:navigate', { 561 + from: prevLoggedRouteName.current, 562 + }) 563 + prevLoggedRouteName.current = getCurrentRouteName() 559 564 }} 560 565 onReady={() => { 561 566 attachRouteToLogEvents(getCurrentRouteName)