A 'yield' expression is only allowed in a generator body
问题 I'm using redux-saga to fetch server api data. My question is that I'm trying to design following code. However yield put(get01Action(members)); which is commented out has following Syntax error. A 'yield' expression is only allowed in a generator body. I don't know how to manage it. import '@babel/polyfill'; import { fork, take, put } from 'redux-saga/effects'; import axios from "axios"; export function* rootSaga(){ yield fork(fetch01); yield fork(fetch02); } function* fetch01() { while