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