mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: Every time you switch the page number of a chunk, the PDF document will be reloaded. #4046 (#4047)
### What problem does this PR solve? Fix: Every time you switch the page number of a chunk, the PDF document will be reloaded. #4046 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -45,9 +45,8 @@ export const useFetchNextChunkList = (): ResponseGetType<{
|
||||
debouncedSearchString,
|
||||
available,
|
||||
],
|
||||
|
||||
initialData: { data: [], total: 0, documentInfo: {} },
|
||||
// placeholderData: keepPreviousData,
|
||||
placeholderData: (previousData) =>
|
||||
previousData ?? { data: [], total: 0, documentInfo: {} }, // https://github.com/TanStack/query/issues/8183
|
||||
gcTime: 0,
|
||||
queryFn: async () => {
|
||||
const { data } = await kbService.chunk_list({
|
||||
|
||||
Reference in New Issue
Block a user