diff options
author | dan <dan.abramov@gmail.com> | 2024-12-03 01:12:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-03 01:12:58 +0000 |
commit | 5a313c2d10b112458830b3bfc708031f6f8726a0 (patch) | |
tree | eb457935c5c9082ad091bc0a88e243c4a06215bc /src/lib/statsig | |
parent | 996871d88ba3298ed53705a6c865cdfe5ede961a (diff) | |
download | voidsky-5a313c2d10b112458830b3bfc708031f6f8726a0.tar.zst |
[Nicer Tabs] Fork TabBar, simplify Pager (#6762)
* Fork TabBar.web.tsx * Trim dead code from both forks * Remove onPageSelecting event It's difficult to tell what exactly it's supposed to represent, and in practice it's not really used aside from logging. Let's rip it out for now to keep other changes simpler. * Remove early onPageSelected call It was added to try to do some work eagerly when we're sure which way the scroll is snapping. This is not necessarily a good idea though. It schedules a potentially expensive re-render right during the deceleration animation, which is not great. Whatever we're optimizing there, we should optimize smarter (e.g. prewarm just the network call). The other thing it used to help with is triggering the pager header autoscroll earlier. But we're going to rewrite that part differently anyway so that's not relevant either. * Prune more dead code from the native version We'll have to revisit this when adding tablet support but for now I'd prefer to remove a codepath that is not being tested or ever run. * Use regular ScrollView on native The Draggable thing was needed for web-only behavior so we can drop it in the native fork.
Diffstat (limited to 'src/lib/statsig')
-rw-r--r-- | src/lib/statsig/events.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/statsig/events.ts b/src/lib/statsig/events.ts index f8c6d181c..674562f82 100644 --- a/src/lib/statsig/events.ts +++ b/src/lib/statsig/events.ts @@ -80,12 +80,6 @@ export type LogEvents = { feedUrl: string feedType: string index: number - reason: - | 'focus' - | 'tabbar-click' - | 'pager-swipe' - | 'desktop-sidebar-click' - | 'starter-pack-initial-feed' } 'feed:endReached': { feedUrl: string |