Skip to content

Commit f9a453e

Browse files
committed
perf: replace StatusHistory guard with direct reactive assignment
1 parent 93b004b commit f9a453e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/lib/components/chat/Messages/ResponseMessage/StatusHistory.svelte

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@
2121
status = history.at(-1);
2222
}
2323
24-
$: if (
25-
statusHistory.length !== history.length ||
26-
JSON.stringify(statusHistory) !== JSON.stringify(history)
27-
) {
28-
history = statusHistory;
29-
}
24+
$: history = statusHistory;
3025
</script>
3126

3227
{#if history && history.length > 0}

0 commit comments

Comments
 (0)