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.web.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.web.tsx')
-rw-r--r-- | src/App.web.tsx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx index 371153209..e29eec0dc 100644 --- a/src/App.web.tsx +++ b/src/App.web.tsx @@ -9,7 +9,6 @@ import 'view/icons' import {init as initPersistedState} from '#/state/persisted' import {useColorMode} from 'state/shell' -import {Provider as AnalyticsProvider} from 'lib/analytics/analytics' import {Shell} from 'view/shell/index' import {ToastContainer} from 'view/com/util/Toast.web' import {ThemeProvider} from 'lib/ThemeContext' @@ -58,15 +57,13 @@ function InnerApp() { <LoggedOutViewProvider> <UnreadNotifsProvider> <ThemeProvider theme={colorMode}> - <AnalyticsProvider> - {/* All components should be within this provider */} - <RootSiblingParent> - <SafeAreaProvider> - <Shell /> - </SafeAreaProvider> - </RootSiblingParent> - <ToastContainer /> - </AnalyticsProvider> + {/* All components should be within this provider */} + <RootSiblingParent> + <SafeAreaProvider> + <Shell /> + </SafeAreaProvider> + </RootSiblingParent> + <ToastContainer /> </ThemeProvider> </UnreadNotifsProvider> </LoggedOutViewProvider> |