mirror of
https://github.com/tooot-app/app
synced 2025-01-11 08:54:42 +01:00
parent
71bea470e0
commit
d26d8f3c14
@ -55,7 +55,7 @@ const TimelineRefresh: React.FC<Props> = ({
|
||||
firstPage?.links?.prev && {
|
||||
...(firstPage.links.prev.isOffset
|
||||
? { offset: firstPage.links.prev.id }
|
||||
: { max_id: firstPage.links.prev.id }),
|
||||
: { min_id: firstPage.links.prev.id }),
|
||||
// https://github.com/facebook/react-native/issues/25239#issuecomment-731100372
|
||||
limit: '3'
|
||||
},
|
||||
|
@ -51,7 +51,7 @@ export type QueryKeyTimeline = [
|
||||
|
||||
const queryFunction = async ({ queryKey, pageParam }: QueryFunctionContext<QueryKeyTimeline>) => {
|
||||
const page = queryKey[1]
|
||||
let params: { [key: string]: string } = { ...pageParam, limit: 40 }
|
||||
let params: { [key: string]: string } = { limit: 40, ...pageParam }
|
||||
|
||||
switch (page.page) {
|
||||
case 'Following':
|
||||
|
Loading…
Reference in New Issue
Block a user