File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ export function init_operations() {
34
34
// @ts -expect-error
35
35
element_prototype . __e = undefined ;
36
36
37
+ // @ts -expect-error
38
+ Text . prototype . __t = undefined ;
39
+
37
40
if ( DEV ) {
38
41
// @ts -expect-error
39
42
element_prototype . __svelte_meta = null ;
Original file line number Diff line number Diff line change @@ -41,8 +41,12 @@ export function set_should_intro(value) {
41
41
* @returns {void }
42
42
*/
43
43
export function set_text ( text , value ) {
44
- if ( text . nodeValue != value ) {
45
- text . nodeValue = value ;
44
+ // @ts -expect-error
45
+ const prev = ( text . __t ??= text . nodeValue ) ;
46
+
47
+ if ( prev !== value ) {
48
+ // @ts -expect-error
49
+ text . nodeValue = text . __t = value ;
46
50
}
47
51
}
48
52
You can’t perform that action at this time.
0 commit comments