mirror of https://github.com/fantasticit/think.git
fix: improve fetch interval
This commit is contained in:
parent
0479f3c8f6
commit
98faa451b5
|
@ -61,7 +61,7 @@ export const useUnreadMessages = () => {
|
|||
const { data, error, isLoading, refetch } = useQuery(
|
||||
[MessageApiDefinition.getUnread.client(), page],
|
||||
() => getMessagesApi('getUnread')(page),
|
||||
{ keepPreviousData: true, refetchInterval: 500 }
|
||||
{ keepPreviousData: true, refetchInterval: 2000 }
|
||||
);
|
||||
|
||||
const readMessage = useCallback(
|
||||
|
|
Loading…
Reference in New Issue