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

Covered RFCs 566, 567, 569, and 577 on improving autotracking (Ember Times 131) #496

Merged
merged 8 commits into from
Jan 17, 2020
32 changes: 30 additions & 2 deletions source/2020-01-17-the-ember-times-issue-131.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
title: The Ember Times - Issue No. 131
author: Chris Ng, Amy Lam, the crowd
author: Chris Ng, Amy Lam, Isaac Lee, the crowd
tags: Recent Posts, Newsletter, Ember.js Times, Ember Times, 2019
alias : "blog/2020/01/17-the-ember-times-issue-131.html"
responsive: true
---

<!--alex ignore waiters-waitresses-->
ijlee2 marked this conversation as resolved.
Show resolved Hide resolved
Привет Emberistas! 🐹
Help improve Ember's autotracking and reactivity system 💬,
Read the New Test Waiters RFC ⏳,
Optimize your app with Ember Data 📈,

Expand All @@ -17,6 +18,33 @@ READMORE

---

## [4 RFCs on improving Ember's autotracking and reactivity system 💬](https://github.com/emberjs/rfcs/blob/use-and-resources/text/0567-use-and-resources.md#introducing-use-and-resources)

Ember Octane features a **new reactivity system**. In particular, **tracked properties** simplify syncing the DOM with JavaScript changes. (Find out how autotracking works from the [Ember Guides](https://guides.emberjs.com/release/in-depth-topics/autotracking-in-depth/).)
ijlee2 marked this conversation as resolved.
Show resolved Hide resolved
ijlee2 marked this conversation as resolved.
Show resolved Hide resolved

To help address some shortcomings, [Chris Garrett (@pzuraq)](https://github.com/pzuraq) proposed introducing the decorators and classes listed below. We encourage you to participate in RFCs and provide feedback today!
ijlee2 marked this conversation as resolved.
Show resolved Hide resolved

### [566. `@memo` decorator](https://github.com/emberjs/rfcs/pull/566)

Unlike computed properties, autotracked getters don't cache their values. `@memo` will let you opt in to memoization.

### [567. `@use` decorator](https://github.com/emberjs/rfcs/pull/567)

The `@use` API will leverage autotracking to solve two core issues:
ijlee2 marked this conversation as resolved.
Show resolved Hide resolved

- Allow Glimmer components to define a behavior with its own lifecycle, independently of the template
- Provide a standard way to mix declarative and imperative code

### [569. `TrackedList` class](https://github.com/emberjs/rfcs/pull/569)

`TrackedList` will autotrack changes to arrays. This class, designed to replace `EmberArray`, will follow the native array API closely and be performant.

### [577. `TrackedMap` and `TrackedSet` classes](https://github.com/emberjs/rfcs/pull/577)

`TrackedMap` and `TrackedSet`, along with their weak analogs, will autotrack changes to maps and sets (dynamic collections of values). These classes will follow the native APIs exactly.

---

<!--alex ignore waiters-waitresses-->
## [New Test Waiters RFC ⏳](https://github.com/emberjs/rfcs/pull/581)

Expand Down Expand Up @@ -159,4 +187,4 @@ That's another wrap! ✨

Be kind,

Chris Ng, Amy Lam, the crowd and the Learning Team
Chris Ng, Amy Lam, Isaac Lee, the crowd and the Learning Team