Skip to content

Commit c9f9778

Browse files
dgp1130AndrewKushnir
authored andcommitted
fix(core): skip Angular formatting when formatting signals recursively
The flag `skipFormatting` got renamed to `ngSkipFormatting` during review of angular#64000, but a couple usages got missed, causing some unfortunate UI recursion. (cherry picked from commit 490435b)
1 parent 20319fe commit c9f9778

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/primitives/signals/src/formatter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const formatter = {
4747
try {
4848
value = sig();
4949
} catch {
50-
// In case the signl throws, we don't want to break the formatting.
50+
// In case the signal throws, we don't want to break the formatting.
5151
return ['span', 'Signal(⚠️ Error)'];
5252
}
5353

@@ -103,7 +103,7 @@ const formatter = {
103103
[
104104
'div',
105105
{style: `padding-left: .5rem;`},
106-
['object', {object: sig, config: {...config, skipFormatting: true}}],
106+
['object', {object: sig, config: {...config, ngSkipFormatting: true}}],
107107
],
108108
];
109109
},
@@ -137,7 +137,7 @@ function prettifyPreview(
137137
}
138138
}
139139
default: {
140-
return ['object', {object: value, config: {skipFormatting: true}}];
140+
return ['object', {object: value, config: {ngSkipFormatting: true}}];
141141
}
142142
}
143143
}

0 commit comments

Comments
 (0)