This template is modified from the original one, to handle multiple status-code handling of response. Don't ask me how they work, I don't quite understand them in depth...
19 lines
405 B
Text
19 lines
405 B
Text
import {all, fork} from "redux-saga/effects";
|
|
|
|
import {
|
|
{{#apiInfo}}
|
|
{{#apis}}
|
|
{{#lambda.camelcase}}{{classFilename}}{{/lambda.camelcase}}AllSagas,
|
|
{{/apis}}
|
|
{{/apiInfo}}
|
|
} from "./index{{importFileExtension}}";
|
|
|
|
export function *allApiSagas() {
|
|
yield all([
|
|
{{#apiInfo}}
|
|
{{#apis}}
|
|
fork({{#lambda.camelcase}}{{classFilename}}{{/lambda.camelcase}}AllSagas),
|
|
{{/apis}}
|
|
{{/apiInfo}}
|
|
]);
|
|
}
|