-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
store.unloadAll does not reset meta data #2772
Comments
Seems like a reasonable change. @runspired would you like to submit a pr for this behavior? |
I should be able to put one together, but I may need some additional info. When trying to fix this locally within my app:
I would think these would return the same thing based on: https://github.com/emberjs/data/blob/v1.0.0-beta.14.1/packages/ember-data/lib/system/store.js#L1081-L1084 |
I think your demo example is missing this line where the store uses the first argument to get the Model class for |
Thanks, that was all it was. |
Clear meta data when unloading all records for a type. Fixes #2772
Using ember-cli, given type
conversation-preview
, after callingthis.get('store').unloadAll('conversationPreview')
a call tothis.get('store').metadataFor('conversation-preview');
returns the stale meta data.The text was updated successfully, but these errors were encountered: