-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
hash no longer works with moments #1638
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
Comments
I also found a similar problem, with the same error, minimal example works on the Immutable.js webpage.
Without going into it too deeply the data changes here from an object to a number, which then causes problems in Minimal test in
|
I worked around it by defining the method Works fine so far |
I think this is a dupe of #1643 (or that one is a dupe of this) |
Hi! |
What happened
As of
4.0.0-rc.11
thehash
function no longer works withmoment
values.It gives an error of:
How to reproduce
Run the following program with
immutable:4.0.0-rc.11
,moment:2.22.2
,node:v9.11.2
:Above works on
4.0.0-rc.10
, but fails onrc.11
andrc.12
.FWIW, I can work around this on my side and it isn't a good practice to hash a mutable variable anyway. But I wanted to report it in case it's a symptom of a bigger issue.
The text was updated successfully, but these errors were encountered: