mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 03:08:24 +00:00
feat(ui): auto-refresh comments list every 2 seconds
This commit is contained in:
@@ -127,6 +127,7 @@ export function FileViewerRightSidebar({
|
||||
},
|
||||
enabled: !!file?.id && (!isPublic || !!shareId),
|
||||
initialPageParam: '',
|
||||
refetchInterval: 2000,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
getNextPageParam: (lastPage: any) => lastPage.pageInfo?.cursor || undefined,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user