From 4b3ec54add3ddc4b6fc3a0045977c692bdb1842f Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 29 Nov 2023 11:15:35 -0800 Subject: Fix infinite query reloading behavior (reset, not invalidate) (#2031) * Reset, not invalidate, notification queries * Reset, not invalidate, feed queries --- src/view/shell/Drawer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/view/shell/Drawer.tsx') diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 9df9b70b3..b2bb6ea1e 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -141,7 +141,7 @@ export function DrawerContent() { } else { if (tab === 'Notifications') { // fetch new notifs on view - queryClient.invalidateQueries({ + queryClient.resetQueries({ queryKey: NOTIFS_RQKEY(), }) } -- cgit 1.4.1