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

Overhaul store.push and store.pushPayload #161

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion text/0000-ember-data-overhaul-store-push.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ use cases are supported with this.
introduces those type of reference to the public
([`store.getReference`](http://emberjs.com/api/data/classes/DS.Store.html#method_getReference)
is not really helpful at the moment). It is questionable if returning
references is needed here. Since we have a `store.normalizePayload` now, it is
references is needed here and in general, if references are intented for this
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/intented/intended/

kind of usage. This might suggest storing references (controller, component)
for later use - which is not the intended use for references...

Since we have a `store.normalizePayload` now, it is
possible to normalize a payload and get the corresponding models via
`store.push`. There is no immediate need for `store.pushRef`. But if a pushing
data into the store without materializing records should be possible, having a
Expand Down