로토의 블로그
  • Resume
  • Blog
  • Github
  • Twitter
  • Linkedin

redux-saga

A collection of 1 post

redux

redux-saga를 쓰니 좋은 점

아래와 같은 비동기 로직이 있다고 할 경우, redux-thunk로 표현하면 아래와 같은 모양일 것이다. function findPolicy({ paylaod }) { const { id } = payload; return (dispatch) => { return new Promise((resolve) => { if (_.isNumber(id)) { return api.findById(

  • 로토
    로토
1 min read
로토의 블로그 © 2022
Latest Posts Facebook Twitter Ghost