diff --git a/web/hooks/use-notifications.ts b/web/hooks/use-notifications.ts index d02d3d30..b2f1701f 100644 --- a/web/hooks/use-notifications.ts +++ b/web/hooks/use-notifications.ts @@ -20,8 +20,9 @@ function useNotifications(privateUser: PrivateUser) { { subscribe: true, includeMetadataChanges: true }, // Temporary workaround for react-query bug: // https://github.com/invertase/react-query-firebase/issues/25 - { cacheTime: 0 } + { refetchOnMount: 'always' } ) + const notifications = useMemo(() => { if (!result.data) return undefined const notifications = result.data as Notification[]