We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0fdb9f commit 6041576Copy full SHA for 6041576
1 file changed
src/components/Messages.tsx
@@ -1,4 +1,4 @@
1
-import { useEffect, useRef, useState } from "react";
+import { memo, useEffect, useRef, useState } from "react";
2
import type { ConversationItem } from "../types";
3
import { Markdown } from "./Markdown";
4
import { DiffBlock } from "./DiffBlock";
@@ -198,7 +198,7 @@ function scrollKeyForItems(items: ConversationItem[]) {
198
}
199
200
201
-export function Messages({
+export const Messages = memo(function Messages({
202
items,
203
isThinking,
204
processingStartedAt = null,
@@ -531,4 +531,4 @@ export function Messages({
531
<div ref={bottomRef} />
532
</div>
533
);
534
-}
+});
0 commit comments