1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2021-01-04 14:55:34 +01:00
parent e9ea0ed71e
commit 811964e10f
15 changed files with 136 additions and 98 deletions

View File

@ -102,7 +102,11 @@ const Index: React.FC<Props> = ({ localCorrupt }) => {
const queryNotification = useInfiniteQuery(
['Notifications', {}],
timelineFetch,
{ enabled: localInstance ? true : false }
{
enabled: localInstance ? true : false,
refetchInterval: 1000 * 60,
refetchIntervalInBackground: true
}
)
const prevNotification = useSelector(getLocalNotification)
useEffect(() => {