0.12.1-alpha.0 • Published 4 years ago
actus-ember v0.12.1-alpha.0
actus-ember
Ember bindings for actus
Included and preconfigured plugins
Install
npm install actus-emberExamples
Usage
import Service from "@ember/service";
import { tracked } from "@glimmer/tracking";
import actusify from "actus-ember";
export default class ExampleService extends Service {
@tracked state = {...};
actions = {...};
constructor(...args) {
super(...args);
actusify(this);
}
}Why choose actus-ember
- actus promotes and facilitates the usage of the Immutable Pattern recommended by the official Glimmer docs for writing "maintainable, understandable components"
- actus promotes declaring actions (functions that change the
stateobject) separately and beforehand instead of updatingthis.statead-hoc and all over the place - preconfigured freeze plugin prevents violation of the Immutable Pattern (prevents mutation of
this.state) - preconfigured defaultActions plugin eliminates the need of implementing simple actions like toggling booleans, setting values, resetting values, etc. while following the Immutable Pattern
- defaultActions plugin promotes the usage of non-null default empty values (
""for strings,[]for arrays, etc.) because defaultActions doesn't work withnull - preconfigured logger plugin significantly improves developer experience by providing detailed info to the console on every state change
actus-ember vs ember-redux
- no boilerplate
- smaller, simpler API
- built-in support for async actions with automatic loading states and error handling
0.12.1-alpha.0
4 years ago
0.12.0-alpha.0
5 years ago
0.11.1-alpha.0
5 years ago
0.11.0-alpha.2
5 years ago
0.11.0-alpha.1
5 years ago
0.11.0-alpha.0
5 years ago
0.10.0-alpha.0
5 years ago
0.9.1-alpha.0
5 years ago
0.9.0-alpha.0
5 years ago
0.8.0-alpha.0
5 years ago
0.7.0-alpha.0
5 years ago
0.6.0-alpha.0
5 years ago
0.5.0-alpha.0
5 years ago
0.4.0-alpha.0
5 years ago
0.3.0-alpha.6
5 years ago
0.3.0-alpha.2
5 years ago
0.3.0-alpha.3
5 years ago
0.3.0-alpha.4
5 years ago
0.3.0-alpha.5
5 years ago
0.3.0-alpha.0
5 years ago
0.3.0-alpha.1
5 years ago
0.2.1-alpha.5
6 years ago
0.2.1-alpha.4
6 years ago
0.2.1-alpha.3
6 years ago
0.2.1-alpha.2
6 years ago
0.2.1-alpha.1
6 years ago
0.2.1-alpha.0
6 years ago
0.2.0-alpha.0
6 years ago
0.1.0-alpha.0
6 years ago
0.0.1-alpha.2
6 years ago
0.0.1-alpha.1
6 years ago
0.0.1-alpha.0
6 years ago