useController
info
useController - hook to initialize you controller.
IMPORTANT useController can be subscribed not more than ones in the same time.
- TypeScript
- JavaScript
import { useController } from 'redux-saga-controller';
const [state, actions, isControllerConnected] = useController(controller);
import { useController } from 'redux-saga-controller';
const [state, actions, isControllerConnected] = useController(controller);