Matthew Huntington 11 months ago
parent 38c3e4b023
commit df30312aee

@ -1,6 +1,6 @@
const state = new Proxy( const state = new Proxy(
{ {
fun: { awesome:true } fun:true
}, },
{ {
set: (target, prop, value) => { set: (target, prop, value) => {
@ -11,5 +11,5 @@ const state = new Proxy(
) )
console.log(state); console.log(state);
state.fun.awesome = false state.fun = false
console.log(state); console.log(state);

Loading…
Cancel
Save