diff options
author | dan <dan.abramov@gmail.com> | 2024-05-30 16:32:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-30 16:32:59 +0100 |
commit | d6275e98c24ae12f070a689eb5602ac08b6abbb7 (patch) | |
tree | adb0cd6699a2c859e804c370d3b10e191ee63450 /src/view/com/pager/Pager.tsx | |
parent | 94312010269d511e122d208d0db540267578ed5c (diff) | |
download | voidsky-d6275e98c24ae12f070a689eb5602ac08b6abbb7.tar.zst |
[Statsig] Sample noisy events (#4288)
* Sample state:background and state:foreground * Sample feed events * Add DEV protection against forgetting to add events to the list
Diffstat (limited to 'src/view/com/pager/Pager.tsx')
-rw-r--r-- | src/view/com/pager/Pager.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/pager/Pager.tsx b/src/view/com/pager/Pager.tsx index 26070fb88..ea88f7390 100644 --- a/src/view/com/pager/Pager.tsx +++ b/src/view/com/pager/Pager.tsx @@ -15,7 +15,7 @@ const AnimatedPagerView = Animated.createAnimatedComponent(PagerView) export interface PagerRef { setPage: ( index: number, - reason: LogEvents['home:feedDisplayed']['reason'], + reason: LogEvents['home:feedDisplayed:sampled']['reason'], ) => void } @@ -32,7 +32,7 @@ interface Props { onPageSelected?: (index: number) => void onPageSelecting?: ( index: number, - reason: LogEvents['home:feedDisplayed']['reason'], + reason: LogEvents['home:feedDisplayed:sampled']['reason'], ) => void onPageScrollStateChanged?: ( scrollState: 'idle' | 'dragging' | 'settling', @@ -61,7 +61,7 @@ export const Pager = forwardRef<PagerRef, React.PropsWithChildren<Props>>( React.useImperativeHandle(ref, () => ({ setPage: ( index: number, - reason: LogEvents['home:feedDisplayed']['reason'], + reason: LogEvents['home:feedDisplayed:sampled']['reason'], ) => { pagerView.current?.setPage(index) onPageSelecting?.(index, reason) |