Unstated tools and enhancers
Install
npm install --save unstated-enhancers # or yarn install --save unstated-enhancers
Manager
Global containers manager registration
; Manager;
To register your containers into the manager you must provide a name
key inside the container class definition.
type CounterState = count: number; <CounterState> name = 'counter' // ...
Then in other places simple call your containers using the container name property registered previously
; // ... Manager;// ...
Logger
Redux like logger with redux dev tools integration
connect
Connect containers to components easily
Heavily inspired by unstated-connect
Combine containers
Combine multiple containers into one and make them communicate with each other.
Base code from unstated-compose but with no child and parent class inheritance.
Persist
Adds persistence to your unstated
containers
Heavily inspired by unstated-persist