agrasley / react-recorder-redux

Redux actions and bindings for react-recorder
MIT License
2 stars 1 forks source link

Command is undefined when used with immutable #3

Open sv opened 7 years ago

sv commented 7 years ago

Getting following error if used with Immutable.js. Any ideas how to make it work?

loading failed TypeError: Cannot read property 'command' of undefined
    at Function.mapStateToProps [as mapToProps] (eval at ./node_modules/react-recorder-redux/lib/Recorder.js (main.js:2507), <anonymous>:19:28)
agrasley commented 7 years ago

It looks like you don't have a recorder field defined on your top-level state object.

sv commented 7 years ago

I see it in Dev tools redux under state. {global:.., recorder:...,router:...}. I am using react-boilerplate. I think issue could be with accessing as state.recorder when using immutablejs. Do you expect it to work?

On Wed, 15 Feb 2017, 18:57 Alexander Grasley, notifications@github.com wrote:

It looks like you don't have a recorder field defined on your top-level state object.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/agrasley/react-recorder-redux/issues/3#issuecomment-280104046, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA3BkU0-rMk9FtdcGeVLw50UN30J6WQks5rc0qagaJpZM4MBx_2 .