diff options
author | dan <dan.abramov@gmail.com> | 2024-04-03 23:42:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 23:42:28 +0100 |
commit | 6c728f79dea65d9deeb57a430e6c9fad39940316 (patch) | |
tree | f229be16238c75f86ca03d356d58b2b3a80c57de /src/App.native.tsx | |
parent | fc1e30afd67e594e254d90e9337a585c19c8fee7 (diff) | |
download | voidsky-6c728f79dea65d9deeb57a430e6c9fad39940316.tar.zst |
Make notifications init reactive to queryClient (#3329)
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 2c880f217..36944aa91 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -19,8 +19,8 @@ import {init as initPersistedState} from '#/state/persisted' import * as persisted from '#/state/persisted' import {Provider as LabelDefsProvider} from '#/state/preferences/label-defs' import {useIntentHandler} from 'lib/hooks/useIntentHandler' +import {useNotificationsListener} from 'lib/notifications/notifications' import {useOTAUpdates} from 'lib/hooks/useOTAUpdates' -import * as notifications from 'lib/notifications/notifications' import { asyncStoragePersister, dehydrateOptions, @@ -61,11 +61,11 @@ function InnerApp() { const theme = useColorModeTheme() const {_} = useLingui() useIntentHandler() + useNotificationsListener(queryClient) useOTAUpdates() // init useEffect(() => { - notifications.init(queryClient) listenSessionDropped(() => { Toast.show(_(msg`Sorry! Your session expired. Please log in again.`)) }) |