ReduxProvider
usage:
runApp(ReduxProvider(
store: new Store(
createReducer(),
State(),
StateActions(),
),
child: child,
));
useReduxActions
usage:
HookBuilder(
builder: (context) {
MyActions actions = useReduxActions<MyActions>();
return RaisedButton(
onPressed: () => actions.someAction(),
child: new Text('dispatch action'),
),
},
)
useReduxActions
usage:
HookBuilder(
builder: (context) {
SubState sub = useReduxState<State, SubState>((s) => s.sub);
return Text(sub.textProp);
},
)