Your best option is probably https://facebook.github.io/immutable-js/ . It's actively maintained by Facebook.
-
-
-
Ouch. Are you using TS? I wouldn't expect that issue to be high on Immutable's radar since I don't believe FB uses TS, but I could be wrong.
-
Tweet unavailable
-
Right. Are there any alternatives?
- 13 more replies
New conversation -
-
-
Isn't an immutable library, by definition, NOT maintained?
- End of conversation
New conversation -
-
-
Immutable.js it the main "purpose-built" option. Also many immutable update util libs available. See my list athttps://github.com/markerikson/redux-ecosystem-links/blob/master/immutable-data.md …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
to skip a whole world of pain, use
@reasonml with@reactjs e.g. https://github.com/chenglou/reason-react-example … cc:@_chenglou (language-native immutable is best.)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Mori would probably be the best option if it was kept up to date w/ the ClojureScript compiler, but it's not...
-
Immutable.js suffers from only having an OOP public API, which sucks if you use currying, partial application, composition, etc.
-
There are some newer, samller time/lesser known projects, like this one:https://github.com/frptools/collectable …
-
This is nice if you only need hashmapshttps://github.com/TylorS/typed-hashmap …
End of conversation
New conversation -
-
-
Using just ramda is great, replaces immutable.js and lodash
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I can recommend against it, as interop (especially in react.js) is awful – it is described here -- http://jlongster.com/Using-Immutable-Data-Structures-in-JavaScript …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Doesn't FB oversee immutable js?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I like just using some kind of immutable lenses (lodash/fp's _.get and _.set, or Ramda) to do immutable updates. Easy enough.
-
Combine it with one of the many middlewares that validates if you mutate by accident in development, and you're good to go.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.