getControllerFromSagaContext
function getControllerFromSagaContext<C>(controller: Controller|ModelConstructor<C>): Generator<any, undefined, C>
Gets a controller instance from the saga context.
Template Parameters
TypeScript.
Parameters
Returns
instance in the saga's context.
Examples
// Also works with a StateController
class MyController extends StatelessController {
// ...
}
function* foo(): any {
const myController = yield getControllerFromSagaContext(MyController);
}