Skip to content

Commit bf7637b

Browse files
trueadmdummdidumm
andauthored
Update packages/svelte/src/internal/client/render.js
Co-authored-by: Simon H <[email protected]>
1 parent 0b7d37c commit bf7637b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function set_should_intro(value) {
4848
* @returns {void}
4949
*/
5050
export function set_text(text, value) {
51-
// For objects, we apply string coercion before diffing
51+
// For objects, we apply string coercion (which might make things like $state array references in the template reactive) before diffing
5252
var str = value == null ? '' : typeof value === 'object' ? value + '' : value;
5353
// @ts-expect-error
5454
if (str !== (text.__t ??= text.nodeValue)) {

0 commit comments

Comments
 (0)