목록2022/12/31 (2)
Silver Library (Archived)
There is something called 'A design pattern for Redux'. In this post, let's research how 'store' concept can be used. Do remember, Redux life cycle should be: Action Creator -> Action -> Dispatch -> Reducers -> Store Which means: You -> Booking Form -> Submit Form -> Ticket Counters -> Movie Cinema Point is; Config slice then set store. cakeSlice.js create feature slice using createSlice functio..
이 부분을 두고 '어떻게 할까...' 하던 중, 그냥 async 로 할 때 Redux 를 쓰게 될 경우에는 'redux -> axios' 로 조합을 구성 하면 되겠다는 잠정 결론이 나왔습니다. 이 글은 redux-thunk middleware 개념을 적용해서 async data 과정에서 axios를 함께 적용하는 사례를 기반으로 간략히 기록되었습니다. Prerequisite. - You need to install the following: npm i axios redux-thunk Redux Thunk. Thunk middleware for Redux. It allows writing functions with logic inside that can interact with a Redux store's..