mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-20 15:11:09 +00:00
fix: react key warnings from duplicate message IDs + establish jest testing framework (#655)
* fix: resolve issue #588 - react key warnings from duplicate message IDs + establish jest testing framework * Update the makefile and workflow with the js test * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -43,7 +43,7 @@ import {
|
||||
useLastFeedbackMessageId,
|
||||
useLastInterruptMessage,
|
||||
useMessage,
|
||||
useMessageIds,
|
||||
useRenderableMessageIds,
|
||||
useResearchMessage,
|
||||
useStore,
|
||||
} from "~/core/store";
|
||||
@@ -63,7 +63,8 @@ export function MessageListView({
|
||||
) => void;
|
||||
}) {
|
||||
const scrollContainerRef = useRef<ScrollContainerRef>(null);
|
||||
const messageIds = useMessageIds();
|
||||
// Use renderable message IDs to avoid React key warnings from duplicate or non-rendering messages
|
||||
const messageIds = useRenderableMessageIds();
|
||||
const interruptMessage = useLastInterruptMessage();
|
||||
const waitingForFeedbackMessageId = useLastFeedbackMessageId();
|
||||
const responding = useStore((state) => state.responding);
|
||||
|
||||
Reference in New Issue
Block a user