Stupid typo..
This commit is contained in:
xmflsct 2022-12-18 22:01:02 +01:00
parent 71bea470e0
commit d26d8f3c14
2 changed files with 2 additions and 2 deletions

View File

@ -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'
},

View File

@ -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':