flutter_built_redux_hooks 0.1.2 copy "flutter_built_redux_hooks: ^0.1.2" to clipboard
flutter_built_redux_hooks: ^0.1.2 copied to clipboard

discontinued

Set of hooks that provide or connect to your redux store

Build Status

Usage #

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);
  },
)
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Set of hooks that provide or connect to your redux store

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

built_redux, flutter, flutter_hooks, provider

More

Packages that depend on flutter_built_redux_hooks