diff options
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r-- | src/App.web.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx index b734aea08..8e22f6480 100644 --- a/src/App.web.tsx +++ b/src/App.web.tsx @@ -9,6 +9,7 @@ import {RootSiblingParent} from 'react-native-root-siblings' import 'view/icons' import {init as initPersistedState} from '#/state/persisted' +import {init as initReminders} from '#/state/shell/reminders' import {useColorMode} from 'state/shell' import * as analytics from 'lib/analytics/analytics' import {RootStoreModel, setupState, RootStoreProvider} from './state' @@ -44,12 +45,14 @@ const InnerApp = observer(function AppImpl() { useEffect(() => { setupState().then(store => { setRootStore(store) - analytics.init(store) }) - dynamicActivate(defaultLocale) // async import of locale data }, []) useEffect(() => { + initReminders() + analytics.init() + dynamicActivate(defaultLocale) // async import of locale data + const account = persisted.get('session').currentAccount resumeSession(account) }, [resumeSession]) |