ParseReact
ParseReact copied to clipboard
Update mutations locally for .include()
When using a Parse .include, and a mutation is dispatched, the mutation is not updated locally. For example:
observe: function() {
var query = new Parse.Query("_User");
query.equalTo("objectId", Parse.User.current().id);
query.include("Posts");
query.include("Friends");
query.include("Friends.Posts");
return {
user: query
};
}
If Friends or Friends.Posts are updated, the data is updated on Parse, but the items must be queried again to update locally. These should be able to update optimistically just like top level data.
+1. This happens even if I use a simple equalTo
in observe()
.