Skip to content

Commit 469fc00

Browse files
committed
RIZ
1 parent c2ff5c8 commit 469fc00

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

frontend/src/components/chat/chat-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export function ChatPage({
260260
observerRef.current.unobserve(sentinel);
261261
if (observerRef.current) observerRef.current.disconnect();
262262
};
263-
}, [messages]);
263+
}, [hasNextPage, isFetchingPreviousPage, isLoading, fetchPreviousPage]);
264264

265265
// When not autoscroll or streaming, keep scroll distance on new data.
266266
useLayoutEffect(() => {

frontend/src/components/sidebar/thread-list-client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function ThreadListClient({
5454
observerRef.current.unobserve(sentinel);
5555
if (observerRef.current) observerRef.current.disconnect();
5656
};
57-
}, [data]);
57+
}, [hasNextPage, isFetchingNextPage, fetchNextPage]);
5858

5959
return (
6060
<div

frontend/src/lib/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,5 +243,5 @@ export class CustomError extends Error {
243243
}
244244
}
245245

246-
export const threadPageSize = "25";
247-
export const messagePageSize = "25";
246+
export const threadPageSize = "5";
247+
export const messagePageSize = "5";

0 commit comments

Comments
 (0)