Notifs refresh improvement (#1941)

* Show loading state in notifications

* Fix invalidation of notifs

* Move spinner below header

* Fix: dont show spinner on initial load
This commit is contained in:
Paul Frazee
2023-11-16 15:50:57 -08:00
committed by GitHub
parent 6f57192bd5
commit c03c744008
2 changed files with 20 additions and 2 deletions
+3 -1
View File
@@ -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