useControllerActions
info
useControllerActions
- hook to get all actions (action creators are already wrapped with dispatch) from your controller. Provides ability to use
controller actions outside of component where controller is subscribed.
- TypeScript
- JavaScript
import { useControllerActions } from 'redux-saga-controller';
const actions = useControllerActions(controller);
import { useControllerActions } from 'redux-saga-controller';
const actions = useControllerActions(controller);