react-tutorial icon indicating copy to clipboard operation
react-tutorial copied to clipboard

10. redux-saga · GitBook

Open utterances-bot opened this issue 5 years ago • 5 comments

10. redux-saga · GitBook

https://react.vlpt.us/redux-middleware/10-redux-saga.html

utterances-bot avatar Dec 21 '20 08:12 utterances-bot

직접쓰신 react를 다루는 기술에 위 예제와 비슷한 CounterContainer가 있네요. 설치다하고, 책대로 소스 그대로 옮겼는데도 INCREASE_ASYNC나 DECREASE_ASYNC action에 대해 INCREASE나 DECREASE가 dispatch가 안되는데, 이유가 뭘까요?

sjkim76 avatar Dec 21 '20 08:12 sjkim76

자문자답: 오늘 다시보니, modules/index.js에서 rootSaga의 yield all([counterSaga()] 이부분을 all[counterSaga]로 해서 발생한 문제였네요. 잘됩니다 ㅎㅎ

sjkim76 avatar Dec 23 '20 22:12 sjkim76

saga에서는 따로 next함수를 호출하지 않는데 yield에서 다음 yield로 넘어가는 조건이 있을까요?

jongjunpark avatar Mar 20 '21 10:03 jongjunpark

아 진짜 재밌네요..! 좋은 글 감사합니다.

moonkey48 avatar Nov 06 '22 12:11 moonkey48

설명이 없어서...그냥 따라하기 같네요..

JungSuRy avatar Nov 16 '23 09:11 JungSuRy