| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- 태그된 유니온
- map
- 인증/인가
- RTK Query
- recoil
- React
- 반공변성
- tailwind
- async/await
- webpack
- CI/CD
- useAppDispatch
- Jest
- dfs
- app router
- autosize
- 무한 스크롤
- 공변성
- 타입 좁히기
- TS
- 투포인터
- 인터섹션
- SSR
- Promise
- 리터럴 타입
- CORS
- 호이스팅
- 결정 알고리즘
- ESlint
- MSA
Archives
- Today
- Total
목록combineReducers (1)
짧은코딩
combineReducers의 중요성, useAppDispatch 훅스 사용시 유의점
combineReducers combineReducers는 Reducer들을 모두 합쳐주는 것이다. 이것이 중요한 이유는 store에서 reducer를 단 1개만 받을 수 있기 때문이다. 따라서 combineReducers에서 Reducer들을 모두 합쳐주고 store에서 모두 합쳐진 reducer를 사용하면 된다. 사용 방법 reducers/index.ts import { combineReducers } from '@reduxjs/toolkit'; import { testSlice } from './TestSlice'; import { roadMapSlice } from './RoadMapSlice'; const reducer = combineReducers({ test: testSlice.reduce..
인프런, 유데미/Redux
2022. 12. 7. 01:30