about summary refs log tree commit diff
path: root/src/view/com/feeds/FeedPage.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-12-06 21:06:54 +0000
committerGitHub <noreply@github.com>2023-12-06 13:06:54 -0800
commit07fe0585775f1c9d89399b00dc1849a6d0c5d71f (patch)
tree1ef0968dbfbc9dffe25176ddb1ab666f74ebe898 /src/view/com/feeds/FeedPage.tsx
parenta924df4dcd87b9963699643d04475dc89c926633 (diff)
downloadvoidsky-07fe0585775f1c9d89399b00dc1849a6d0c5d71f.tar.zst
Move analytics out of critical path (#2117)
* Remove analytics provider, simplify hook

* Fix wrong import being used by feed

* Remove early bind

* Create client lazy on first use
Diffstat (limited to 'src/view/com/feeds/FeedPage.tsx')
-rw-r--r--src/view/com/feeds/FeedPage.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/feeds/FeedPage.tsx b/src/view/com/feeds/FeedPage.tsx
index 3a7781ea1..3624e6565 100644
--- a/src/view/com/feeds/FeedPage.tsx
+++ b/src/view/com/feeds/FeedPage.tsx
@@ -4,7 +4,7 @@ import {
   FontAwesomeIconStyle,
 } from '@fortawesome/react-native-fontawesome'
 import {useNavigation} from '@react-navigation/native'
-import {useAnalytics} from '@segment/analytics-react-native'
+import {useAnalytics} from 'lib/analytics/analytics'
 import {useQueryClient} from '@tanstack/react-query'
 import {RQKEY as FEED_RQKEY} from '#/state/queries/post-feed'
 import {useOnMainScroll} from 'lib/hooks/useOnMainScroll'