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 a4bd59a commit 264f129Copy full SHA for 264f129
packages/svelte/src/internal/client/runtime.js
@@ -1350,13 +1350,7 @@ export function mutable_source(initial_value) {
1350
// bind the signal to the component context, in case we need to
1351
// track updates to trigger beforeUpdate/afterUpdate callbacks
1352
if (current_component_context) {
1353
- const signals = current_component_context.d;
1354
-
1355
- if (signals) {
1356
- signals.push(s);
1357
- } else {
1358
- current_component_context.d = [s];
1359
- }
+ (current_component_context.d ?? []).push(s);
1360
}
1361
1362
return s;
0 commit comments