flutter_built_redux_hooks library
Classes
-
ReduxProvider
-
Provides a the Redux
Store
to all descendants of this Widget.
Make this the root Widget of your app.
To connect to the provided store use useReduxState.
Functions
-
useReduxActions<Actions extends ReduxActions>()
→ Actions
-
Returns the actions from your
Store
.
-
useReduxState<State, SubState>(SubState connect(State state), {bool ignoreChange = false})
→ SubState
-
This hook will connect to the
Store
and returns the SubState
given
in connect
. [...]
-
useReduxStateEffect<State, SubState>(SubState connect(State state), {VoidCallback onDidChange(SubState state), VoidCallback onInitial(SubState state), VoidCallback onDispose()})
→ void
-
Executes callbacks whenever state changes
-
useReduxStateOnDidChangeEffect<State, SubState>(SubState connect(State state), VoidCallback effect(SubState state))
→ void
-
Executes the
effect
whenever the connected SubState
changed
-
useReduxStateOnInitialBuildEffect<State, SubState>(SubState connect(State state), VoidCallback effect(SubState state))
→ void
-
Executes the
effect
once, after the widget has built
-
useReduxStore<State extends Built<State, StateBuilder>, StateBuilder extends Builder<State, StateBuilder>, Actions extends ReduxActions>()
→ Store<State, StateBuilder, Actions>
-
Returns the store provided by ReduxProvider.