Fork me on GitHub
#cljsrn
<
2017-06-18
>
misha13:06:37

@localshred what I'll say is not RN/re-frame specific, but I try to keep logic as separate from components as possible to the extend I can put it into .cljc files and test from clojure. It has some purity and discipline overhead, but those are the good ones

misha14:06:08

my expectation is that I can extract all of the storage (any atoms) and all of the mutation (e.g. events) and perception (derived values, materialized views), test those separately, and then just use all of that in pretty dumb (R, RN, re-frame, rum, what have you) views

localshred18:06:03

right, that's what I've been doing as well

localshred18:06:19

I found my parse error, didn't know you can't :refer :all in cljs

localshred18:06:26

got my tests running