useReduxActions<Actions extends ReduxActions> function

Actions useReduxActions<Actions extends ReduxActions>()

Returns the actions from your Store.

Implementation

Actions useReduxActions<Actions extends ReduxActions>() {
  final store = _useReduxStore();

  assert(store.actions is Actions,
      'Actions was not found, make sure generic Actions matches built_redux store.actions');

  return store.actions as Actions;
}