I am working on a react app where I want to block the execution at yield put and only resumes after yield put is completed.How can I do it in redux react?
yield put(ActionCreator.setPageNumber(page_number + 1));
I have to implement a functionality of table scroller which increments page number every time and then makes the api call with the updated page number,the above yield put increments the page number but as yield put is non-blocking in nature,api call doesnt wait for the page increment and makes the api call with the non incremented page number.
Any leads would definitely help!