Deep compare chatrow props to update when message changes

This commit is contained in:
Saoud Rizwan
2024-09-07 04:57:38 -04:00
parent bc9fdd1fba
commit 715db7129d
7 changed files with 32 additions and 46 deletions

View File

@@ -80,7 +80,7 @@ const StyledPre = styled.pre<{ theme: any }>`
.join("")}
`
const CodeBlock = memo(function CodeBlock({ source }: { source?: string }) {
const CodeBlock = memo(({ source }: { source?: string }) => {
const { theme } = useExtensionState()
const [reactContent, setMarkdownSource] = useRemark({
remarkPlugins: [