1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
When clearing queryClient, we may want to create a global function to refetch last read position
This commit is contained in:
Zhiyuan Zheng
2022-01-29 16:37:58 +01:00
parent 0cbf08ed82
commit 45ba984ea3
5 changed files with 41 additions and 5 deletions

View File

@ -36,6 +36,7 @@ const pushUseRespond = ({ queryClient, instances, dispatch }: Params) => {
)
if (notificationIndex !== -1) {
dispatch(updateInstanceActive(instances[notificationIndex]))
queryClient.clear()
}
pushUseNavigate(payloadData.notification_id)
}