pull/12484/head
Dominic Gannaway 2 years ago
parent 0ba9d4e32f
commit 167e77dced

@ -276,7 +276,11 @@ export const javascript_visitors_runes = {
/** @type {import('estree').Expression} */ (visit(binding.initial)); /** @type {import('estree').Expression} */ (visit(binding.initial));
// We're adding proxy here on demand and not within the prop runtime function so that // We're adding proxy here on demand and not within the prop runtime function so that
// people not using proxied state anywhere in their code don't have to pay the additional bundle size cost // people not using proxied state anywhere in their code don't have to pay the additional bundle size cost
if (initial && binding.kind === 'bindable_prop' && should_proxy_or_freeze(initial, state.scope)) { if (
initial &&
binding.kind === 'bindable_prop' &&
should_proxy_or_freeze(initial, state.scope)
) {
initial = b.call('$.proxy', initial); initial = b.call('$.proxy', initial);
} }

Loading…
Cancel
Save