Are there any approaches when using both immutable.js and redux-form that don't require calling .toJS()
?
I can see the suggested approach on this issue is to call .toJS()
on the Map
object before passing it to the form:
getFormState: (state, reduxMountPoint) => state.get(reduxMountPoint).toJS()
Does this not compromise the performance benefit you get from using immutable.js and limit memoization?
I'm interested to know the performance impact of this, will it still be worth using immutable.js in a form heavy application? Are there any other approaches that don't rely on .toJS()
?