SmartTimeline: Use key prop to ensure no re-use of existing component

This commit is contained in:
Scott Nonnenberg 2023-01-17 19:27:34 -08:00 committed by GitHub
parent efc54e44c4
commit 0f8009fe2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,9 @@ export function SmartConversationView(): JSX.Element {
renderConversationHeader={() => ( renderConversationHeader={() => (
<SmartConversationHeader id={conversationId} /> <SmartConversationHeader id={conversationId} />
)} )}
renderTimeline={() => <SmartTimeline id={conversationId} />} renderTimeline={() => (
<SmartTimeline key={conversationId} id={conversationId} />
)}
renderPanel={() => { renderPanel={() => {
if (!topPanel) { if (!topPanel) {
return; return;