canjs / can-view-scope

Scope management for view engines
https://canjs.com/doc/can-view-scope.html
MIT License
4 stars 0 forks source link

Not able to update despite it's observation being updated #194

Closed justinbmeyer closed 6 years ago

justinbmeyer commented 6 years ago

somehow with a two-way binding ... it's possible to have bind update the parent, but try to read it after and not see the updated value.

Looking into this.

var context = new SimpleMap({
    "prop" :"value"
});

var prop = new Scope(context).computeData("this.prop",{proxyMethods: false});

canReflect.onValue(prop, function(){});

context.on("prop", function(){

    QUnit.equal(canReflect.getValue(prop), "VALUE", "able to read fastPath value");
},"notify");

context.set("prop", "VALUE");