fix(chat): refresh memoized action handlers (#1147)
Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
committed by
GitHub
co-authored by
Isaac Sanchez
parent
006e84dbc4
commit
1d800366a0
@@ -600,6 +600,9 @@ const ComposerActionButtons = React.memo(function ComposerActionButtons(props: C
|
||||
&& prev.hasContent === next.hasContent
|
||||
&& prev.currentSessionId === next.currentSessionId
|
||||
&& prev.newSessionDraftOpen === next.newSessionDraftOpen
|
||||
&& prev.onPrimaryAction === next.onPrimaryAction
|
||||
&& prev.onQueueMessage === next.onQueueMessage
|
||||
&& prev.onAbort === next.onAbort
|
||||
));
|
||||
|
||||
const appendWithLineBreaks = (base: string, next: string): string => {
|
||||
|
||||
Reference in New Issue
Block a user