@mohayonao/fluxx

simple implementation of Flux architecture

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
10Jul 26, 2015Jul 22, 2015Minified + gzip package size for @mohayonao/fluxx in KB

Readme

FLUXX

Build Status NPM Version License

simple implementation of Flux architecture

Installation

npm install @mohayonao/fluxx

API

Router

  • constructor()

Instance attributes

  • actions: Action[]
  • stores: Store[]

Instance methods

Also implements methods from the interface @mohayonao/event-emitter.

  • getStateFromStores(): object
  • createAction(address: string, data: any): void
  • addChangeListener(listener: function): void
  • removeChangeListener(listener: function): void

Action

  • constructor(router: Router)

Instance attributes

  • router: Router

Instance methods

  • doneAction(address: string, data: any): void

Store

  • constructor(router: Router)

Instance attributes

  • router: Router
  • data: object
  • name: string

Instance methods

  • getInitialState(): object
  • getState(): object
  • emitChange(): void

LICENSE

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.