Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
ember-promise-cps
Advanced tools
This Ember addon provides you with a computed property macros to aid with common problems when passing promises into components:
{{! application.hbs }}
{{items-list items-promise=promiseForItems}}
// items-list/component.js
import { promiseObject } from 'ember-promise-cps/macros';
export default Component.extend({
proxy: promiseObject('items-promise')
});
{{! items-list/template.hbs }}
{{#if proxy.isPending}}
Loading items
{{else if proxy.isRejected}}
Unable to display items: {{proxy.reason}}
{{else if proxy.isFulfilled}}
{{#each proxy.items as |item|}}
...
{{/each}}
{{/if}}
{{#if (await items)}}
{{#each items as |item|}}
...
...then the downside is you don't _also_ have the ability to base more computed properties on the result of that promise in the component itself. (It's more useful to resolve the promise in the component, and let your template read the properties rather than the other way around. It also leads to simpler templates).
2. If you need something more substantial, see: http://ember-concurrency.com/
ember install ember-promise-cps
FAQs
Promise Proxy Object computed properties
The npm package ember-promise-cps receives a total of 6 weekly downloads. As such, ember-promise-cps popularity was classified as not popular.
We found that ember-promise-cps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.