News for hackers. Stuff that matters.
Re:Immutable Data Structures That Are Compatible with Normal... by tommoor on Saturday August 12, 2017 @01:21PM (#14998825)
The main thing I can think of is that it will add all it's internal methods to your objects, which restricts which properties you can use – eg, "update", "merge" etc. This isn't usually an issue but we happened to have some policy objects with the same property names.

It also doesn't play nicely with Flow unless you use the static syntax.

Re:Immutable Data Structures That Are Compatible with Normal... by kasbah on Saturday August 12, 2017 @01:24PM (#14998839)
Ah, wasn't aware. Good to know. Well, I never did get Immutable.js to play nicely with Flow which is kind of why I gave up on Flow.

I wondered if you might have something to say on performance issues. You didn't encounter anything of that sort?

Re:Immutable Data Structures That Are Compatible with Normal... by tommoor on Saturday August 12, 2017 @01:58PM (#14999006)
Performance was the main reason we switched over. We found using Immutable objects to be the key to a performant UI when using something like React that's diffing your props every render loop.
Re:Immutable Data Structures That Are Compatible with Normal... by kasbah on Saturday August 12, 2017 @02:05PM (#14999048)
So you would have your props be Immutable.js objects? I wasn't sure if doing that would be a good idea but sounds like that has worked out for you.