일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- map
- 투포인터
- ESlint
- CORS
- 태그된 유니온
- 결정 알고리즘
- app router
- RTK Query
- Promise
- autosize
- TS
- 인터섹션
- Jest
- 공변성
- 이분 검색
- 반공변성
- tailwind
- webpack
- CI/CD
- SSR
- React
- 리터럴 타입
- 호이스팅
- async/await
- 타입 좁히기
- 무한 스크롤
- useAppDispatch
- recoil
- Cypress
- dfs
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