Skip to content

Commit 7202bc9

Browse files
committed
make it clear that this is specifically about bindings
1 parent 9f3ce12 commit 7202bc9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export function build_component(node, component_name, context, anchor = context.
194194

195195
if (is_store_sub) {
196196
push_prop(
197-
b.get(attribute.name, [b.stmt(b.call('$.mark_store_sub')), b.return(expression)])
197+
b.get(attribute.name, [b.stmt(b.call('$.mark_store_binding')), b.return(expression)])
198198
);
199199
} else {
200200
push_prop(b.get(attribute.name, [b.return(expression)]));

packages/svelte/src/internal/client/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export {
122122
store_unsub,
123123
update_pre_store,
124124
update_store,
125-
mark_store_sub
125+
mark_store_binding
126126
} from './reactivity/store.js';
127127
export { set_text } from './render.js';
128128
export {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function update_pre_store(store, store_value, d = 1) {
157157
/**
158158
* Called inside prop getters to communicate that the prop is a store binding
159159
*/
160-
export function mark_store_sub() {
160+
export function mark_store_binding() {
161161
marked_store_sub = true;
162162
}
163163

0 commit comments

Comments
 (0)