Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

smiLLe/flutter_built_redux_hooks

Repository files navigation

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);
  },
)

About

Flutter hooks for built redux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages