fix proxy of computed fields

proxied-state-set
Dominic Gannaway 12 months ago
parent 1c92ddc272
commit 468ee8bc48

@ -55,7 +55,7 @@ function init(value) {
/** @type {ProxyHandler<StateObject>} */
const handler = {
get(target, prop) {
get(target, prop, receiver) {
const metadata = target[STATE_SYMBOL];
let s = metadata.s.get(prop);
@ -70,7 +70,7 @@ const handler = {
metadata.s.set(prop, s);
}
const value = s !== undefined ? get(s) : target[prop];
const value = s !== undefined ? get(s) : Reflect.get(target, prop, receiver);
return value === UNINITIALIZED ? undefined : value;
},
set(target, prop, value) {

Loading…
Cancel
Save