-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Immutable.js #51
Comments
Ah, so you were faster than me to report this. Thanks :) As @gaearon mentioned, this should be solved with duck typing, perhaps checking if there is a |
I hit the same problem, but I'm using <DebugPanel top right bottom>
<DevTools
store={store}
converter={mori.toJs}
monitor={LogMonitor} />
</DebugPanel> |
@hugobessaa I see that even mori implements iterator interface, so there is really no need for a converter. We just need someone willing to implement (see #66). |
Oh, I see. Nice. |
For everyone who's waiting for that pull request to be merged, here's a small workaround via the let selectDevToolsState = (state = {}) => Immutable.fromJS(state).toJS();
<DebugPanel top right bottom key="debugPanel">
<DevTools store={store} select={selectDevToolsState} monitor={LogMonitor} />
</DebugPanel> It's a bit crude, but does the job for now. |
Should be fixed in 1.1.0, please verify. |
👍 works for me, thank you! |
Since upgrading to 1.0, support for Immutable.js has stopped working. It shows the raw immutable object rather than converting it to JS.
There is some discussion of this in #48
The text was updated successfully, but these errors were encountered: