You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new object that is returned is just that, a new object. If you modify the new object, then
you are not modifying the target object, so I would not expect the callback to be called.
Oh sure. It might be out of scope, but I figured I would bring it up to see what other's thought.
importonChangefrom'on-change'constlistOf=[1,2,3,4]constproxied=onChange(listOf,function(){ ... })// or splice, map, or any other Array.prototype function that returns a new Arrayconstfiltered=proxied.filter(()=>{ ... })
The use case is filtered being a Proxy with the same "callback" as proxied.
I think we might have to use Symbol.species but not completely sure yet.
The text was updated successfully, but these errors were encountered: