gajus / redux-immutable

redux-immutable is used to create an equivalent function of Redux combineReducers that works with Immutable.js state.
Other
1.88k stars 82 forks source link

react-router getComponent func run store.replaceReducer() dead to #48

Closed lileilei closed 7 years ago

lileilei commented 7 years ago

immutable.js:1430 Uncaught RangeError: Maximum call stack size exceeded => infinite loop

gajus commented 7 years ago

What is the actual code thats triggering this?

lileilei commented 7 years ago

example: https://github.com/lileilei/react-redux-immutable/blob/master/src/routes/Login/index.js

gajus commented 7 years ago

What is the actual code around the lines where the error originates?

lileilei commented 7 years ago

injectReducer(store, {key: 'login', reducer}) func run store.replaceReducer() replaceReducer lead to getComponents infinite loop. maybe routing:locationReducer error

lileilei commented 7 years ago

Please, if not I can only remove it

gajus commented 7 years ago

Sorry, I don't understand the issue.

However, check this out, https://github.com/gajus/redux-immutable/pull/33.

If you still have an issue, please add more details.