thunk
-
redux] async 를 어떻게 처리 하는게 좋을까?물망초. 2021. 11. 14. 16:31
async 를 처리하기 위한 다양한 것 중에 나는 무엇을 써야할까? thunks? saga? observables? Thunks are best for complex synchronous logic (especially code that needs access to the entire Redux store state), and simple async logic (like basic AJAX calls). With the use of async/await, it can be reasonable to use thunks for some more complex promise-based logic as well. (썽크는 복잡한 동기 논리(특히 전체 Redux 저장소 상태에 액세스해야 하는 코드)와 간단한 비동..