Skip to content

Commit f3e09d3

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

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
@@ -364,7 +364,7 @@
364364
};
365365
366366
$: if (token) {
367-
if (JSON.stringify(token) !== JSON.stringify(_token)) {
367+
if (token.raw !== _token?.raw) {
368368
_token = token;
369369
}
370370
}

0 commit comments

Comments
 (0)