ember-cache-primitive-polyfill
Polyfills Ember's cache primitive API.
Provides a low-level primitive for memoizing the result of a function based on autotracking, allowing users to create their own reactive systems that can respond to changes in autotracked state.
Compatibility
- Ember.js v3.13 or above (inert for Ember 3.22+)
ember-cli-babel
v7.22.1 or above- Ember CLI v3.8 or above
- Node.js v10 or above
Installation
ember install ember-cache-primitive-polyfill
Usage
;; let computeCount = 0; @tracked firstName = 'Jen'; @tracked lastName = 'Weber'; #fullName = { return ; } let person = ; console; // Jen Weberconsole; // 1;console; // Jen Weberconsole; // 1; personfirstName = 'Jennifer'; console; // Jennifer Weberconsole; // 2;
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.