about summary refs log tree commit diff
path: root/src/view/screens/Notifications.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-11-29 11:15:35 -0800
committerGitHub <noreply@github.com>2023-11-29 11:15:35 -0800
commit4b3ec54add3ddc4b6fc3a0045977c692bdb1842f (patch)
tree363dc6c6d6f885e0ec8252099fa1d2fc4d3c8169 /src/view/screens/Notifications.tsx
parent9239efac9c5339093f2742099b33834053635fc9 (diff)
downloadvoidsky-4b3ec54add3ddc4b6fc3a0045977c692bdb1842f.tar.zst
Fix infinite query reloading behavior (reset, not invalidate) (#2031)
* Reset, not invalidate, notification queries

* Reset, not invalidate, feed queries
Diffstat (limited to 'src/view/screens/Notifications.tsx')
-rw-r--r--src/view/screens/Notifications.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx
index a5226bb67..0f442038b 100644
--- a/src/view/screens/Notifications.tsx
+++ b/src/view/screens/Notifications.tsx
@@ -54,7 +54,7 @@ export function NotificationsScreen({}: Props) {
     scrollToTop()
     if (hasNew) {
       // render what we have now
-      queryClient.invalidateQueries({
+      queryClient.resetQueries({
         queryKey: NOTIFS_RQKEY(),
       })
     } else {