We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7d37c commit bf7637bCopy full SHA for bf7637b
packages/svelte/src/internal/client/render.js
@@ -48,7 +48,7 @@ export function set_should_intro(value) {
48
* @returns {void}
49
*/
50
export function set_text(text, value) {
51
- // For objects, we apply string coercion before diffing
+ // For objects, we apply string coercion (which might make things like $state array references in the template reactive) before diffing
52
var str = value == null ? '' : typeof value === 'object' ? value + '' : value;
53
// @ts-expect-error
54
if (str !== (text.__t ??= text.nodeValue)) {
0 commit comments