Fork me on GitHub
#reagent
<
2019-06-07
>
lilactown02:06:59

Well, reacts API forces people into immutability by convention

lilactown03:06:41

The benefits of using CLJS data structures would be some possible memory efficiency improvements, as well as having first class support for immutable operations

lilactown03:06:21

I was specifically addressing the claim that CLJS data structures were somehow worse when it comes to the new react API

lilactown03:06:39

They are at least as good 😁

lilactown03:06:30

Good always has a context though. Mutable JS data structures will always be better in tight loops

lilactown03:06:16

But in reacts land, there's no benefits to mutable data structures

drewverlee17:06:23

React optimizes changes to building the Dom right? Nothing impacts the later trees: render, layout, paint?

lilactown17:06:31

react computes an optimal set of DOM mutations (`createElement` / append / etc)

lilactown17:06:43

does that answer your question?