Skip to content

Parse user updated on server but not locally #364

@GursheeshSingh

Description

@GursheeshSingh

I think this a strange behaviour in ParseUser

ParseUser currentUser = await ParseUser.currentUser();
currentUser.set("turnOnNotifications", newValue);
var response = await currentUser.update();
if (response.success) {
    ParseUser currentUser = await ParseUser.currentUser();
    currentUser.get("turnOnNotifications");
    return;
}

Here when I change the value of current user and update it. It successfully updates the value to the sever and the response also gives the updated value

But when I access it again, it is still unchanged, I think the update only happens on the server and not locally.

This is quite frustrating as it causes a lot of bugs and does not help in the program flow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions