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