Skip to content

currentUser doesn't get updated even after calling getUserFromServer #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eslamira opened this issue Jan 31, 2019 · 4 comments
Closed
Assignees
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@eslamira
Copy link

eslamira commented Jan 31, 2019

ParseUser.currentUser(); once called the currentUser i get doesn't get updated again for example i update the user's values and save them to the database and when i cal getUserfromServer it get the values right but doesn't show in currentUser unless i completely remove the cache data like remove the app from the phone and then the updated data is in the currentUser but again it doesn't update at all

these are the log from the normal run i added some values to user saved it and it does show for the getUserFromServer but not for the local currentUser (the one with minus sign in it is the currentUser)

{"className":"_User","objectId":"UdMqp45eTs","createdAt":"2019-01-27T16:05:46.340Z","updatedAt":"2019-01-31T22:39:36.045Z","username":"+201144753259","secondarySubscription":"{"__type": "Pointer", "className": "Subscription", "objectId": "xxxxxxxxxxx"}","primarySubscription":"{"__type": "Pointer", "className": "Subscription", "objectId": "fffffffff"}","services":null,"ACL":{"":{"read":true},"UdMqp45eTs":{"read":true,"write":true}},"sessionToken":"r:46a7f17dd2aa364909530241a7bc5c94"}
--------------{"className":"_User","objectId":"UdMqp45eTs","createdAt":"2019-01-27T16:05:46.340Z","updatedAt":"2019-01-31T22:39:36.045Z","username":"+201144753259","password":"+201144753259","services":null,"ACL":{"
":{"read":true},"UdMqp45eTs":{"read":true,"write":true}},"sessionToken":"r:46a7f17dd2aa364909530241a7bc5c94"}

and these are the logs after removing the cache => now i'm getting it right

{"className":"_User","objectId":"UdMqp45eTs","createdAt":"2019-01-27T16:05:46.340Z","updatedAt":"2019-01-31T22:39:36.045Z","username":"+201144753259","secondarySubscription":"{"__type": "Pointer", "className": "Subscription", "objectId": "xxxxxxxxxxx"}","primarySubscription":"{"__type": "Pointer", "className": "Subscription", "objectId": "fffffffff"}","services":null,"ACL":{"":{"read":true},"UdMqp45eTs":{"read":true,"write":true}},"sessionToken":"r:46a7f17dd2aa364909530241a7bc5c94"}
--------------{"className":"_User","objectId":"UdMqp45eTs","createdAt":"2019-01-27T16:05:46.340Z","updatedAt":"2019-01-31T22:39:36.045Z","username":"+201144753259","password":"+201144753259","secondarySubscription":"{"__type": "Pointer", "className": "Subscription", "objectId": "xxxxxxxxxxx"}","primarySubscription":"{"__type": "Pointer", "className": "Subscription", "objectId": "fffffffff"}","services":null,"ACL":{"
":{"read":true},"UdMqp45eTs":{"read":true,"write":true}},"sessionToken":"r:46a7f17dd2aa364909530241a7bc5c94"}

so is that normal ??
also i think this is related to the logout issue i previously issued

@phillwiggins
Copy link
Member

phillwiggins commented Feb 1, 2019 via email

@Saifallak
Copy link
Contributor

Yes

@phillwiggins
Copy link
Member

phillwiggins commented Feb 1, 2019 via email

@phillwiggins phillwiggins self-assigned this Feb 5, 2019
@phillwiggins phillwiggins added the type:bug Impaired feature or lacking behavior that is likely assumed label Feb 5, 2019
@phillwiggins
Copy link
Member

Fixed in v1.0.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

3 participants