fix(frontend): fix logout issue (#3374)

* fix(frontend): post migration fixes

* fix(frontend): add network-only option so transactions are refetched properly on another user login.

* feat(frontend): remove not needed await on mounted

---------

Co-authored-by: einhornimmond <dario.rekowski@gmx.de>
This commit is contained in:
MateuszMichalowski 2024-10-15 15:08:14 +02:00 committed by GitHub
parent 71f19d366f
commit ec964020c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,7 +219,7 @@ const {
load: useTransactionsQuery,
refetch: useRefetchTransactionsQuery,
result: transactionQueryResult,
} = useLazyQuery(transactionsQuery)
} = useLazyQuery(transactionsQuery, {}, { fetchPolicy: 'network-only' })
const { mutate: useLogoutMutation } = useMutation(logout)
const { t } = useI18n()
const { toastError } = useAppToast()