redux_watch 0.2.0 copy "redux_watch: ^0.2.0" to clipboard
redux_watch: ^0.2.0 copied to clipboard

Dart 1 only

A starting point for Dart libraries or applications.

redux_watch #

Redux Watch to dart.

Used when you want to be notified that an particular state changed in the redux store.

Usage #

A simple usage example:

// Create the watch by passing the store and a selector.
var watch =  new  ReduxWatch<AppState, int>(store, (state) => state.todosId);

// Now you can create how many listeners you need.
// Everytime the selector changes by a redux dispatch, the listeners will be called.
watch.listen((int oldValue, int newValue) => print('$oldValue -> $newValue'));
watch.listen((int oldValue, int newValue) => print('Hello World'));
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

redux

More

Packages that depend on redux_watch