From d26d8f3c14f0f066e72c52522ffa35df61b1427f Mon Sep 17 00:00:00 2001 From: xmflsct Date: Sun, 18 Dec 2022 22:01:02 +0100 Subject: [PATCH] Fixed #574 Stupid typo.. --- src/components/Timeline/Refresh.tsx | 2 +- src/utils/queryHooks/timeline.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Timeline/Refresh.tsx b/src/components/Timeline/Refresh.tsx index 9ac45e95..c7256596 100644 --- a/src/components/Timeline/Refresh.tsx +++ b/src/components/Timeline/Refresh.tsx @@ -55,7 +55,7 @@ const TimelineRefresh: React.FC = ({ 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' }, diff --git a/src/utils/queryHooks/timeline.ts b/src/utils/queryHooks/timeline.ts index 5417acc9..d044905e 100644 --- a/src/utils/queryHooks/timeline.ts +++ b/src/utils/queryHooks/timeline.ts @@ -51,7 +51,7 @@ export type QueryKeyTimeline = [ const queryFunction = async ({ queryKey, pageParam }: QueryFunctionContext) => { 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':