Skip to content
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

Enabling local datastore causes constant PFConsistencyAssert #57

Open
simpleshadow opened this issue Apr 12, 2017 · 1 comment
Open

Comments

@simpleshadow
Copy link

simpleshadow commented Apr 12, 2017

(Hello!? Anyone home? 👀)

I've been using Bolts-Swift for a bit but recently enabled the local datastore in the Parse SDK to be able to pin models locally. Now Bolts-Swift is constantly throwing the following assert:

PFConsistencyAssert(existing == nil || existing == object,
                           @"Attempted to change an objectId to one that's already known to the OfflineStore.");

I'm not quite sure how to work around this. It seemed when I called TaskCompletionSources asyncly in a DispatchQueue, the complaint went away, but this brought other problems so I'd rather not do that.

Any ideas what's going on and how to handle?

Thanks! 🤓👍

@simpleshadow
Copy link
Author

(Temporarily resolved by replacing Bolts-Swift with PromiseKit. 🙃)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant