Skip to content

Commit 73d66a8

Browse files
committed
also appears to be unnecessary
1 parent c9cf7e3 commit 73d66a8

File tree

1 file changed

+1
-7
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+1
-7
lines changed

packages/svelte/src/internal/client/reactivity/props.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,8 @@ export function prop(props, key, flags, fallback) {
265265

266266
var fallback_value = /** @type {V} */ (fallback);
267267
var fallback_dirty = true;
268-
var fallback_used = false;
269268

270269
var get_fallback = () => {
271-
fallback_used = true;
272-
273270
if (fallback_dirty) {
274271
fallback_dirty = false;
275272

@@ -320,7 +317,6 @@ export function prop(props, key, flags, fallback) {
320317
var value = /** @type {V} */ (props[key]);
321318
if (value === undefined) return get_fallback();
322319
fallback_dirty = true;
323-
fallback_used = false;
324320
return value;
325321
};
326322
} else {
@@ -371,9 +367,7 @@ export function prop(props, key, flags, fallback) {
371367

372368
set(d, new_value);
373369

374-
// To ensure the fallback value is consistent when used with proxies, we
375-
// update the local fallback_value, but only if the fallback is actively used
376-
if (fallback_used && fallback_value !== undefined) {
370+
if (fallback_value !== undefined) {
377371
fallback_value = new_value;
378372
}
379373

0 commit comments

Comments
 (0)