Fork me on GitHub
#reagent
<
2017-09-23
>
mikethompson01:09:17

@borkdude I'm not sure that's true (but I have to race out and can't test). A function will compare = to itself.

mikethompson01:09:26

BUT a function generated by running a renderer will not test equal to the same function previously generated by a renderer, because they are different functions, created a different points of time (even though they do the same thing and were generated in the same place). Gotta go.

profgra07:09:22

Hi! So far I have only seen Form2 components with a single value in the state. If I want two values, which way is the preferred (see the snippet below)? Does this even have any sense?

vinai07:09:57

@profgra I think it really depends on what is more convenient for you.

profgra12:09:03

OK vinai thx.

gadfly36116:09:13

@profgra i prefer the second option

profgra16:09:45

@gadfly361 I would say that too, maybe for atomicity reasons, but I'm not sure. Do you have any explanations for this preference?

gadfly36117:09:48

Whenever possible, i try to avoid local state, but when i do use it, i prefer housing it in a single thing (i.e. a single ratom) bc it makes passing the local state around to sub components and testing easier