remove validation from binding

reassign-derived
Dominic Gannaway 2 months ago
parent 15330a6064
commit 8af30e137c

@ -45,7 +45,7 @@ export function BindDirective(node, context) {
e.bind_invalid_value(node.expression); e.bind_invalid_value(node.expression);
} }
if (binding?.kind === 'derived' && !binding.reassigned) { if (binding?.kind === 'derived' && binding.declaration_kind === 'const') {
e.constant_binding(node.expression, 'derived state'); e.constant_binding(node.expression, 'derived state');
} }

Loading…
Cancel
Save