remove proxy assign derived

reassign-derived
Dominic Gannaway 2 months ago
parent 8af30e137c
commit 59f374c3cf

@ -50,6 +50,7 @@ export function build_getter(node, state) {
* @param {PrivateIdentifier | string} proxy_reference
*/
export function build_proxy_reassignment(value, proxy_reference) {
debugger
return dev
? b.call(
'$.proxy',

@ -109,7 +109,10 @@ function build_assignment(operator, left, right, context) {
context.state.analysis.runes &&
should_proxy(value, context.state.scope)
) {
value = binding.kind === 'raw_state' ? value : build_proxy_reassignment(value, object.name);
value =
binding.kind === 'raw_state' || binding.kind === 'derived'
? value
: build_proxy_reassignment(value, object.name);
}
return transform.assign(object, value);

Loading…
Cancel
Save