Fork me on GitHub
#re-frame
<
2017-04-23
>
souenzzo13:04:16

What's the "base size" of a reagent application? Looks that React+ReactDOM has about 150K My "hello world" app with just re-frame, reagent, http-fx was with 400K... (advanced on closure).

lingeeal20:04:42

How does this work then? Does subscribe wrap the part of db map data into ratom everytime it's called?

mikethompson21:04:02

@souenzzo 400K sounds about right as a base. There's the one-off cost of including much of the clojure.core library. Plus Reagent itself and re-frame.

mikethompson21:04:57

@lingeeal re-frame is doing the reactive wrapping for you

gadfly36121:04:39

@souenzzo I think a base reagent app is around 300k. Just updated the reagent-figwheel template with this PR: https://github.com/gadfly361/reagent-figwheel/pull/7

gadfly36121:04:49

Id assume re-frame would add minimally to that size. I havent checked, but if re-frame-template is starting off around 400k then i likely need to update it