From bfa88c3406b0a641f37b15c533d37f64c8849121 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 2 Sep 2022 22:51:33 -0500 Subject: [PATCH] Turn off react-query notification subscription because it's buggy --- web/hooks/use-notifications.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/hooks/use-notifications.ts b/web/hooks/use-notifications.ts index 60d0e43e..473facd4 100644 --- a/web/hooks/use-notifications.ts +++ b/web/hooks/use-notifications.ts @@ -16,11 +16,7 @@ export type NotificationGroup = { function useNotifications(privateUser: PrivateUser) { const result = useFirestoreQueryData( ['notifications-all', privateUser.id], - getNotificationsQuery(privateUser.id), - { subscribe: true, includeMetadataChanges: true }, - // Temporary workaround for react-query bug: - // https://github.com/invertase/react-query-firebase/issues/25 - { refetchOnMount: 'always' } + getNotificationsQuery(privateUser.id) ) const notifications = useMemo(() => {