ParseReact icon indicating copy to clipboard operation
ParseReact copied to clipboard

Update mutations locally for .include()

Open chrbala opened this issue 9 years ago • 1 comments

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.

chrbala avatar Sep 29 '15 05:09 chrbala

+1. This happens even if I use a simple equalTo in observe().

martolini avatar Oct 24 '15 02:10 martolini