Skip to content

Commit 024707c

Browse files
Algorithm5838github-actions[bot]
authored andcommitted
perf: use token.raw for CodeBlock change detection
1 parent dbf3f69 commit 024707c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/components/chat/Messages/CodeBlock.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
};
364364
365365
$: if (token) {
366-
if (JSON.stringify(token) !== JSON.stringify(_token)) {
366+
if (token.raw !== _token?.raw) {
367367
_token = token;
368368
}
369369
}

0 commit comments

Comments
 (0)