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