Closed yavuzmester closed 7 years ago
This can be simplified down to:
const promise = Immutable.from(Promise.resolve(123))
console.log(promise);
promise.then(console.log)
which results in:
{}
promise.then(console.log)
^
TypeError: promise.then is not a function
...
Promises can be considered immutable, and this library should probable treat them as such.
@rtfeldman Any ETA when the fix will be merged to master?
The code above results in this:
However If you only change the first line to use immutable like this:
The result differs:
If we call asMutable() before .map call, then we are fine:
result:
We have no intent to mutate anything, so there should not be a need to call asMutable. An enhancement to the "seamless-immutable" would be good.