Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure state is merged into meta props as plain object (#1877, #1955) #2336
cb3abb5 added functionality that merged the state into the meta object for fields. However, when using Immutable JS structures the state will be an Immutable.Iterable. When developing in React Native the
I am assuming this is because the Object.assign polyfill is different in the React Native environment (any confirmation on this?). I tested the webpack polyfill in the Immutable example and it pretty much just transfers properties from one object to another without any checks. I am assuming this is why this error has not had any more attention since it does not happen in browser environments.
As for the fix I added a
Current coverage is 100% (diff: 100%)
@@ master #2336 diff @@ ===================================== Files 61 61 Lines 1267 1269 +2 Methods 0 0 Messages 0 0 Branches 0 0 ===================================== + Hits 1267 1269 +2 Misses 0 0 Partials 0 0