alt-utils
v2.0.0
Published
A collection of utils that work with alt.js
Downloads
21,102
Readme
Alt Utils
This package contains the following utils which interface well with the Alt library (a true flux compliant library in a very small size):
- ActionListeners lets you listen to individual actions without having to create a store.
- AltIso addon that uses iso to render your application on both server and client.
- atomic enables your stores for atomic transactions.
- decorators lets you use a collection of useful ES7 decorators when working with alt.
- AltManager allows you to create multiple alt instances in your app.
- AltTestingUtils
- Debugger
- DispatcherDebugger
- DispatchRecorder lets you record all your dispatches and replay them back at a later time.
- Inspector
- ImmutableUtil makes working with immutable-js easy.
- Render
- StoreExplorer
- TimeTravel enhances your stores so they are able to travel through different states in time.
- chromeDebug
- connect
- connectToStores
- fp
- functions
- makeFinalStore is a Store that only emits when all your other stores have received all their data.
- makeFinalStore
- makeHot
- reducers
- statics
- withAltContext
Note: If you are looking for the following utils, these are available in separate npm packages and github repos:
- AltContainer a higher-order container component that is your swiss army knife for React.
- connectToStores a higher-order function that wraps your React components for store listening.
Installation
npm install alt-utils
ES6 import examples
This is how specific utils can be imported to your project files:
import chromeDebug from 'alt-utils/lib/chromeDebug';
import {decorate, datasource, bind} from 'alt-utils/lib/decorators';