본문 바로가기

React/REDUX

(4)
[리덕스 사가 공식문서 번역] takeEvery이펙트와 takeLast 이펙트의 차이 https://redux-saga.js.org/docs/basics/UsingSagaHelpers Using Saga Helpers | Redux-Saga Using Saga Helpers redux-saga.js.org 본 글은 리덕스 사가 공식문서를 번역한 글입니다.(*주의 : 필자의 의역이 섞여있습니다. ) 더보기 redux-saga provides some helper effects wrapping internal functions to spawn tasks when some specific actions are dispatched to the Store. The helper functions are built on top of the lower level API. In the advanced s..
[리덕스 사가 공식문서 번역] 리덕스사가에서 에러처리하기 / Error handling https://redux-saga.js.org/docs/basics/ErrorHandling Error Handling | Redux-Saga Error handling redux-saga.js.org 본 글은 리덕스 사가 공식문서를 번역한 글입니다.(*주의 : 필자의 의역이 섞여있습니다. ) 더보기 In this section we'll see how to handle the failure case from the previous example. Let's suppose that our API function Api.fetch returns a Promise which gets rejected when the remote fetch fails for some reason. We want to handl..
[리덕스 사가 공식문서번역] 이팩트에 대한 일반적인 추상화 / A common abstraction: Effect https://redux-saga.js.org/docs/basics/Effect Effect | Redux-Saga A common abstraction: Effect redux-saga.js.org 본 글은 리덕스 사가 공식문서를 번역한 글입니다.(*주의 : 필자의 의역이 섞여있습니다. ) 더보기 To generalize, triggering Side Effects from inside a Saga is always done by yielding some declarative Effect. (You can also yield Promise directly, but this will make testing difficult as we saw in the first section.) What a Saga ..
[리덕스사가 공식문서 번역] 액션을 스토어에 디스패치하는 방법(Dispatching actions to the store) https://redux-saga.js.org/docs/basics/DispatchingActions Dispatching Actions | Redux-Saga Dispatching actions to the store redux-saga.js.org 리덕스 사가의 공식문서를 번역한 글입니다. 더보기 Taking the previous example further, let's say that after each save, we want to dispatch some action to notify the Store that the fetch has succeeded (we'll omit the failure case for the moment). We could pass the Store's dispatc..