diff --git a/web/src/screens/category/CategoryScreen.tsx b/web/src/screens/category/CategoryScreen.tsx
index 9424295e..0583ba53 100644
--- a/web/src/screens/category/CategoryScreen.tsx
+++ b/web/src/screens/category/CategoryScreen.tsx
@@ -35,7 +35,7 @@ export function CategoryScreen(props: ScreenProps) {
diff --git a/web/src/screens/feed/FeedScreen.tsx b/web/src/screens/feed/FeedScreen.tsx
index adb1c653..c10dce03 100644
--- a/web/src/screens/feed/FeedScreen.tsx
+++ b/web/src/screens/feed/FeedScreen.tsx
@@ -68,7 +68,7 @@ async function ThreadFeedScreenContent({ initialSession, page }: PageProps) {
);
} catch (e) {
diff --git a/web/src/screens/feed/ThreadFeedScreen/useThreadFeedScreen.ts b/web/src/screens/feed/ThreadFeedScreen/useThreadFeedScreen.ts
index 6befb80a..a20ef80d 100644
--- a/web/src/screens/feed/ThreadFeedScreen/useThreadFeedScreen.ts
+++ b/web/src/screens/feed/ThreadFeedScreen/useThreadFeedScreen.ts
@@ -6,14 +6,21 @@ import { Account, Category, ThreadListResult } from "@/api/openapi-schema";
export type Props = {
initialSession?: Account;
initialPage: number;
- initialPageData?: ThreadListResult[];
+ initialPageData?: ThreadListResult;
category?: Category;
};
export function useThreadFeedScreen(props: Props) {
- const { data, error } = useThreadList({
- page: props.initialPage.toString(),
- });
+ const { data, error } = useThreadList(
+ {
+ page: props.initialPage.toString(),
+ },
+ {
+ swr: {
+ fallbackData: props.initialPageData,
+ },
+ },
+ );
if (!data) {
return {
ready: false as const,