fix another edge case

props-bindable
Simon Holthausen 9 months ago
parent b0a8aaf855
commit 17b916c8cd

@ -255,6 +255,15 @@ export function client_component(source, analysis, options) {
continue;
const key = binding.prop_alias ?? name;
if (
binding.kind === 'prop' &&
[...analysis.instance.scope.declarations].some(
([name, d]) => d.kind === 'bindable_prop' && (d.prop_alias ?? name) === key
)
) {
// bindable prop takes precedence
continue;
}
properties.push(
b.get(key, [b.return(b.call(b.id(name)))]),

Loading…
Cancel
Save