add focus refresh + polling (#3846)
This commit is contained in:
parent
4a2d4253e5
commit
ce02a41163
3 changed files with 23 additions and 2 deletions
|
@ -7,7 +7,7 @@ import {useHeaders} from './temp-headers'
|
|||
export const RQKEY = ['convo-list']
|
||||
type RQPageParam = string | undefined
|
||||
|
||||
export function useListConvos() {
|
||||
export function useListConvos({refetchInterval}: {refetchInterval: number}) {
|
||||
const headers = useHeaders()
|
||||
const {serviceUrl} = useDmServiceUrlStorage()
|
||||
|
||||
|
@ -24,5 +24,6 @@ export function useListConvos() {
|
|||
},
|
||||
initialPageParam: undefined as RQPageParam,
|
||||
getNextPageParam: lastPage => lastPage.cursor,
|
||||
refetchInterval,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue