flutter_hooks_async_redux
library
Functions
-
useClearExceptionFor()
→ void Function(Object actionOrTypeOrList)
-
Removes the given
actionTypeOrList
from the list of action types that
failed.
-
useDispatch()
→ Dispatch
-
Dispatches the action, applying its reducer, and possibly changing the store state.
The action may be sync or async.
-
useDispatchAndWait()
→ DispatchAndWait
-
Dispatches the action, applying its reducer, and possibly changing the store state.
The action may be sync or async. In both cases, it returns a Future that resolves when
the action finishes.
-
useDispatchSync()
→ DispatchSync
-
Dispatches the action, applying its reducer, and possibly changing the store state.
However, if the action is ASYNC, it will throw a
StoreException
.
-
useExceptionFor(Object actionOrTypeOrList)
→ UserException?
-
Returns the
UserException
of the actionTypeOrList
that failed.
-
useIsFailed(Object actionOrTypeOrList)
→ bool
-
Returns true if an
actionOrTypeOrList
failed with an UserException
.
-
useIsWaiting(Object actionOrTypeOrList)
→ bool
-
You can use
isWaiting
and pass it actionOrActionTypeOrList
to check if:
-
useSelector<St, T>(T converter(St state), {bool distinct = true})
→ T
-
useSelector lets you select a part of the state and subscribe to updates.