```
๊ฐ์ ธ์ค๊ธฐ {
์ปด๋ฐ์ธ๋ฆฌ๋์
} from'redux-immutable';
๊ฐ์ ธ์ค๊ธฐ {
์คํ ์ด ์์ฑ
} '๋ฆฌ๋์ค'์์;
const initialState = Immutable.Map();
const rootReducer = CombineReducers({});
const store = createStore(rootReducer, initialState); ```
CombineReducers๋ฅผ ๋์ฒดํ๋ ๋ฐฉ๋ฒ, immutablejs๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ, ์์ ๊ฐ ์์ต๋๊น?
๋๋ ์ฌ์ ํ ๊ฐ๋ฅํ ํ ๋นจ๋ฆฌ dva + immutable์ ์ถ์ํ๊ธฐ๋ฅผ ํฌ๋งํฉ๋๋ค.
react-native ๅฆไฝๅ ่ฐ่ฏๅทฅๅ
ทremote-redux-devtools
`
'remote-redux-devtools'์์ { composeWithDevTools } ๊ฐ์ ธ์ค๊ธฐ;
const ์ ์ฅ์ = createStore(
๋ฃจํธ๋ฆฌ๋์,
์ด๊ธฐ ์ํ,
composeWithDevTools(
์ ์ฉ ๋ฏธ๋ค์จ์ด(sagaMiddleware),
),
);
`
์ด pr-1002๋ฅผ ๋ฐ๋ฅด์ญ์์ค
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๋ ์ฌ์ ํ ๊ฐ๋ฅํ ํ ๋นจ๋ฆฌ dva + immutable์ ์ถ์ํ๊ธฐ๋ฅผ ํฌ๋งํฉ๋๋ค.