xmaster484

Results 2 comments of xmaster484

@ksloan const getDataUntilDone = (data, dispatch) => { const links = data.links.next; dispatch(CONCAT_DATA(data.data)); if (links !== null) { axios.get(links).then(resp => { getDataUntilDone(resp.data, dispatch); }); } }; export const dataLogic =...

@ksloan seems like you were right, the done() was being executed before the other dispatches, but adding the return just made it dispatch twice (instead of once when there was...