Skip to content

Commit

Permalink
Issue #636: fix pagination results
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzov96 committed Oct 6, 2023
1 parent f18f085 commit fbf7bd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function useInfiniteResults<E>(
const client = useOpenK9Client();

return useInfiniteQuery(
["results", searchQuery, sort, language, sortAfterKey] as const,
["results", searchQuery, sort, language, sortAfterKey, result] as const,
async ({ queryKey: [, searchQuery, sort], pageParam = 0 }) => {
const RangePage: [number, number] =
sortAfterKey === "" ? [result, pageSize] : [0, pageSize];
Expand Down

0 comments on commit fbf7bd4

Please sign in to comment.