Skip to content

Commit 2c12812

Browse files
committed
tweak
1 parent 6cec8ea commit 2c12812

File tree

1 file changed

+3
-4
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import {
55
PROPS_IS_IMMUTABLE,
66
PROPS_IS_LAZY_INITIAL,
77
PROPS_IS_RUNES,
8-
PROPS_IS_UPDATED,
9-
UNINITIALIZED
8+
PROPS_IS_UPDATED
109
} from '../../../constants.js';
1110
import { get_descriptor, is_function } from '../../shared/utils.js';
1211
import { mutable_source, set, source, update } from './sources.js';
@@ -393,8 +392,8 @@ export function prop(props, key, flags, fallback) {
393392
return (inner_current_value.v = parent_value);
394393
});
395394

396-
// Read the prop eagerly to ensure it has a value
397-
if (!is_runes()) {
395+
// Read the bindable prop eagerly to ensure it has a value
396+
if (!is_runes() && bindable) {
398397
get(current_value);
399398
}
400399

0 commit comments

Comments
 (0)