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-16 15:50:57 -0800
committerGitHub <noreply@github.com>2023-11-16 15:50:57 -0800
commitc03c744008bc15be807ccb172801268bd24dae53 (patch)
tree7e18bfb6b1ceb0480eb3ef6695b71b53942e9c77 /src/view/screens/Notifications.tsx
parent6f57192bd56e1e9b8eb89eb23cf847371ca2684c (diff)
downloadvoidsky-c03c744008bc15be807ccb172801268bd24dae53.tar.zst
Notifs refresh improvement (#1941)
* Show loading state in notifications

* Fix invalidation of notifs

* Move spinner below header

* Fix: dont show spinner on initial load
Diffstat (limited to 'src/view/screens/Notifications.tsx')
-rw-r--r--src/view/screens/Notifications.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx
index 970882f12..c892ee4e3 100644
--- a/src/view/screens/Notifications.tsx
+++ b/src/view/screens/Notifications.tsx
@@ -47,7 +47,9 @@ export const NotificationsScreen = withAuthRequired(
 
     const onPressLoadLatest = React.useCallback(() => {
       scrollToTop()
-      queryClient.invalidateQueries({queryKey: NOTIFS_RQKEY()})
+      queryClient.invalidateQueries({
+        queryKey: NOTIFS_RQKEY(),
+      })
     }, [scrollToTop, queryClient])
 
     // on-visible setup