Skip to content
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

Incompatible with immutable v4.0.0-rc9 #53

Closed
kayneb opened this issue Nov 16, 2017 · 0 comments
Closed

Incompatible with immutable v4.0.0-rc9 #53

kayneb opened this issue Nov 16, 2017 · 0 comments

Comments

@kayneb
Copy link

kayneb commented Nov 16, 2017

As per the changelog of immutable v4, KeyedCollection.toArray() returns an array of tuples. In react-immutable-proptypes, toArray is used in the validator of the iterable type checker.

Instead, it should call .valueSeq().toArray() to ensure that it operates on values and not on entries.

jchorl added a commit to jchorl/vaelt that referenced this issue Mar 24, 2018
also needed to fork react-immutable-proptypes because that broke with
the upgrade. See HurricaneJames/react-immutable-proptypes#53
mechanicalchopsticks added a commit to mechanicalchopsticks/react-immutable-proptypes that referenced this issue Nov 26, 2018
 - changing `propValue.toArray()` to `propValue.valueSeq().toArray()` for immutable v4 compatibility
HurricaneJames added a commit that referenced this issue Mar 13, 2020
…ompat

fixes #53 - changing propValue.toArray() to propValue.valueSeq().toAr…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant