Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

Added section on model.save RFC #3537

Merged

Conversation

kennethlarsen
Copy link
Member

No description provided.

@kennethlarsen kennethlarsen requested a review from a team August 30, 2018 12:41
Copy link
Contributor

@chrisrng chrisrng left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -41,8 +41,14 @@ Read more in the [rendered pull request on GitHub](https://github.com/emberjs/rf

---

## [SECTION TITLE](#section-url)
## [RFC: I Promise You It's Good](#section-url)
Copy link
Contributor

Choose a reason for hiding this comment

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

Missed adding the link to the RFC replacing section-url

Also an emoji! 👌

Copy link
Member

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

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

This reads great ✨ After updating the section url this should be good to go!


The idea here is to make `DS.Model.save()` return an `RSVP.Promise` instead of a `PromiseObject`. This is to remove the dependency on promise proxies, improve async consistency and enable new functionality in Ember Data.

The only drawback of this is if you are already relying on this behaviour you’ll probably have to refactor your code to either use patterns like `async/await` or `ember-concurrency`.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a link to the Ember Concurrency GitHub here?

Copy link
Member

@jayjayjpg jayjayjpg left a comment

Choose a reason for hiding this comment

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

This reads great, thank you for another writeup this week ✨

@jayjayjpg jayjayjpg merged commit 5289038 into emberjs:blog/embertimes-62 Aug 31, 2018
@kennethlarsen kennethlarsen deleted the blog/embertimes-62 branch August 31, 2018 06:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants