We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
unloadAll()
store
DEBUG: ------------------------------- DEBUG: Ember : 2.15.0 DEBUG: Ember Data : 2.15.0 DEBUG: jQuery : 3.2.1 DEBUG: -------------------------------
> store.peekAll('directions').get('length') 0 > store.findAll('directions') XHR finished loading: SEARCH "https://host.ru/api/v2/rest/directions". > store.peekAll('directions').get('length') 2 >store.unloadAll() undefined > store.peekAll('directions').get('length') 2
But when unload record-by-record - all Ok:
> store.peekAll('directions').get('length') 0 > store.findAll('directions') XHR finished loading: SEARCH "https://host.ru/api/v2/rest/directions". > store.peekAll('directions').get('length') 2 > store.peekAll('directions').objectAt(0).unloadRecord() undefined > store.peekAll('directions').get('length') 1 >store.peekAll('directions').objectAt(0).unloadRecord() undefined > store.peekAll('directions').get('length') 0
The text was updated successfully, but these errors were encountered:
#5167 is possibly related.
What if you wrap the unloadAll in a runloop? e.g.
unloadAll
Ember.run(() => store.unloadAll());
Sorry, something went wrong.
Hello @bantic
unfortunately, wrapping doesn't help
This sounds exactly like #5111
Successfully merging a pull request may close this issue.
But when unload record-by-record - all Ok:
The text was updated successfully, but these errors were encountered: