0.12.1-alpha.0 • Published 2 years ago

actus-ember v0.12.1-alpha.0

Weekly downloads
101
License
MIT
Repository
github
Last release
2 years ago

actus-ember

Ember bindings for actus

npm version

Included and preconfigured plugins

Install

npm install actus-ember

Examples

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 state object) separately and beforehand instead of updating this.state ad-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 with null
  • 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

2 years ago

0.12.0-alpha.0

3 years ago

0.11.1-alpha.0

3 years ago

0.11.0-alpha.2

3 years ago

0.11.0-alpha.1

3 years ago

0.11.0-alpha.0

4 years ago

0.10.0-alpha.0

4 years ago

0.9.1-alpha.0

4 years ago

0.9.0-alpha.0

4 years ago

0.8.0-alpha.0

4 years ago

0.7.0-alpha.0

4 years ago

0.6.0-alpha.0

4 years ago

0.5.0-alpha.0

4 years ago

0.4.0-alpha.0

4 years ago

0.3.0-alpha.6

4 years ago

0.3.0-alpha.2

4 years ago

0.3.0-alpha.3

4 years ago

0.3.0-alpha.4

4 years ago

0.3.0-alpha.5

4 years ago

0.3.0-alpha.0

4 years ago

0.3.0-alpha.1

4 years ago

0.2.1-alpha.5

4 years ago

0.2.1-alpha.4

4 years ago

0.2.1-alpha.3

4 years ago

0.2.1-alpha.2

4 years ago

0.2.1-alpha.1

4 years ago

0.2.1-alpha.0

4 years ago

0.2.0-alpha.0

4 years ago

0.1.0-alpha.0

4 years ago

0.0.1-alpha.2

4 years ago

0.0.1-alpha.1

4 years ago

0.0.1-alpha.0

4 years ago