diff options
author | dan <dan.abramov@gmail.com> | 2023-12-06 21:06:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 13:06:54 -0800 |
commit | 07fe0585775f1c9d89399b00dc1849a6d0c5d71f (patch) | |
tree | 1ef0968dbfbc9dffe25176ddb1ab666f74ebe898 /src/App.native.tsx | |
parent | a924df4dcd87b9963699643d04475dc89c926633 (diff) | |
download | voidsky-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/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 442d7fe58..9b9287789 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -16,7 +16,6 @@ import {ThemeProvider} from 'lib/ThemeContext' import {s} from 'lib/styles' import {Shell} from 'view/shell' import * as notifications from 'lib/notifications/notifications' -import {Provider as AnalyticsProvider} from 'lib/analytics/analytics' import * as Toast from 'view/com/util/Toast' import {queryClient} from 'lib/react-query' import {TestCtrls} from 'view/com/testing/TestCtrls' @@ -71,15 +70,13 @@ function InnerApp() { <LoggedOutViewProvider> <UnreadNotifsProvider> <ThemeProvider theme={colorMode}> - <AnalyticsProvider> - {/* All components should be within this provider */} - <RootSiblingParent> - <GestureHandlerRootView style={s.h100pct}> - <TestCtrls /> - <Shell /> - </GestureHandlerRootView> - </RootSiblingParent> - </AnalyticsProvider> + {/* All components should be within this provider */} + <RootSiblingParent> + <GestureHandlerRootView style={s.h100pct}> + <TestCtrls /> + <Shell /> + </GestureHandlerRootView> + </RootSiblingParent> </ThemeProvider> </UnreadNotifsProvider> </LoggedOutViewProvider> |