Prevent runaway pagination
This commit is contained in:
committed by
Samuel Newman
parent
cd7a39ecd7
commit
83b47db1b6
@@ -35,7 +35,7 @@ export function useDraftsQuery() {
|
||||
}
|
||||
},
|
||||
initialPageParam: undefined as string | undefined,
|
||||
getNextPageParam: page => page.cursor,
|
||||
getNextPageParam: page => page.cursor || undefined,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user