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:
parent
6f57192bd5
commit
c03c744008
2 changed files with 20 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue