add event context
This commit is contained in:
@@ -65,7 +65,12 @@ export type LogEvents = {
|
||||
feedUrl: string
|
||||
feedType: string
|
||||
index: number
|
||||
reason: 'focus' | 'tabbar-click' | 'pager-swipe' | 'desktop-sidebar-click'
|
||||
reason:
|
||||
| 'focus'
|
||||
| 'tabbar-click'
|
||||
| 'pager-swipe'
|
||||
| 'desktop-sidebar-click'
|
||||
| 'starter-pack-initial-feed'
|
||||
}
|
||||
'feed:endReached:sampled': {
|
||||
feedUrl: string
|
||||
|
||||
@@ -93,7 +93,7 @@ function HomeScreenReady({
|
||||
// This is supposed to only happen on the web when you use the right nav.
|
||||
if (initialIndex !== selectedIndex) {
|
||||
lastPagerReportedIndexRef.current = initialIndex
|
||||
pagerRef.current?.setPage(initialIndex, 'desktop-sidebar-click')
|
||||
pagerRef.current?.setPage(initialIndex, 'starter-pack-initial-feed')
|
||||
} else if (selectedIndex !== lastPagerReportedIndexRef.current) {
|
||||
lastPagerReportedIndexRef.current = selectedIndex
|
||||
pagerRef.current?.setPage(selectedIndex, 'desktop-sidebar-click')
|
||||
|
||||
Reference in New Issue
Block a user