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
root.get('key1.key2.leafValue').flatMap(({json})=>{varmodel1=root.deref(json.key1);returnmodel1.get('key2.leafValue').map(({json}=>model1.deref(json.key2))}).subscribe((model2)=>{console.log(model2._path);// will be ['key2'] instead of ['key1', 'key2']});
Obviously contrived example, but you get the point. Since the second get's JSON is relative to "key1", calling deref with the result of the second get doesn't include key1 like it should.
The text was updated successfully, but these errors were encountered:
@michaelbpaulson @sdesai @jhusain I don't have time to submit a PR right this second, but this line needs to be:
This comes up if you do:
Obviously contrived example, but you get the point. Since the second get's JSON is relative to "key1", calling
deref
with the result of the second get doesn't includekey1
like it should.The text was updated successfully, but these errors were encountered: