Ember Times-Issue 119

✌️ Humanitarian! 🐹

Read the blog post about using Ember.js to handle Promise and UI state🔄 to learn how Ember has helped Intercom develop since 2014📖, the variable future of Ember Octane🐹🏎, and Ember and GraphQL: a simple example📹.

Sabine Hertanu @herzzanu Wrote a Blog post About using Ember to handle promises and UI state. Examples of this range from providing loading status when sending a post request to enabling complex behaviors, such as backoff periods, before being able to interact with the UI again.

The idea is to write the promise-based operation as Generator function Use the provided Ember concurrency bee.

read Full blog post more details!

Watch the introduction GraphQL using Ember.js in Rocky Nerve Rock @jneurock‘S new video! The YouTube video ⚡️quickly ⚡️ demonstrates how to start and run Ember.js, GraphQL, Apollo and EmberCLI Mirage.

If you are interested in learning how to set up an application with GraphQL and Ember.js, or just want to learn more about GraphQL and Apollo and related syntax, this video is a great resource. In addition, you can also learn how EmberCLI Mirage handles GraphQL queries! ✨

you could Watch the full video here.

in JSDayIE 2019, Gavin Joyce (@GavinJoyce) Gave a speech on how adopting Ember can help Walkie talkie It has been increasing year by year since 2014.

In particular, Gavin attributed the four keys to success to:

  • Share core values ​​with Ember
  • Enable new developers to release meaningful features as soon as possible
  • Because of Ember’s stability and will not stagnate, so confident in upgrading
  • Ember’s commitment to continuous improvement (rendering engine case study)

He passed the preview Ember octane numberNative JS method: “I don’t know what you will remove from it. […] Everything has a purpose, it is minimalist and clean. “💙

please Look at Gavin’s speech And share!

A handy helper Since the early days of Ember 1.13, it has existed in the framework’s API. It allows to specify a certain value-passed by the parent component or controller- May mutate Through sub-components.this is So-called {{mut}} helper.

Most Ember developers are familiar with {{mut}} The scene is as follows:

<!-- app/templates/components/my-component.hbs -->
  oninput={{action (mut @passedDownValue) value="target.value"}}

Combine {{action}} helper, {{mut}} Allows developers to create a useful, implicit and template-only shorthand For the setter function, otherwise it needs to be explicitly defined in the component class itself:

// app/components/my-component.js
import Component from '@ember/component';

export default Component.extend({
  actions: {
    updateValue(newValue) {
      this.set('passedDownValue', newValue);
<!-- app/templates/components/my-component.hbs -->
  oninput={{action "updateValue" value="target.value"}}

with Ember Octane is coming soon And the new Glimmer component API Enforce one-way data flow, Many developers may want to know how to {{mut}} The helper still fits the overall situation.Is there any problem in use {{mut}} In the future Octane application?Is there any plan? Deprecated assistant Or is it a 2-way binding API in the framework?

The answers to all these questions can be found in Excellent in-depth research mut Binding with 2 way after Chris Garrett (@pzuraq)This blog post will clarify which data binding framework APIs will be retained for the foreseeable future (including Ember Octane), and what issues are still pending regarding the 2-way binding components commonly used in Ember applications today.

Must check out article, Share with your colleagues and Ember friends and join the discussion Embers Dispute!

This week we want to thank @jacojoubert, Mansona, @吉斯莱恩盖林, @pzuraq, @Frozenfire92, @阿隆斯基, @igorT, @Gaurav0, @Richard Winnie, @tomdale, @dcyriller, @HeroicEric, @ Panman8201, @rwjblue with @wongpeiyi Thanks for their contributions to Ember and related repositories! 💖

Want to know about Ember, Ember Data, Glimmer, or plugins in the Ember ecosystem, but don’t know where to consult? Readers’ questions are only answered for you!

Submit your own Short and sweet problem under bit.ly/ask-ember-coreDon’t worry, there are no stupid questions, we thank them-guaranteed! 🤞

Want to write for Ember Times? Any suggestions for next week’s problem?join us #support-ember-times in Ember community discord Or ping us @embertimes On Twitter.

Subscribe to our channel to get the latest news from Emberland this week Email newsletter!You can also find our posts in the following locations People Blog.

That is another package! ✨

Be kind,

Chris Ng, Isaac Lee, Jessica Jordan, Jared Galanis, Amy Lam and the learning team

Leave a Reply

Your email address will not be published. Required fields are marked *