On Friday, March 6, 2015 at 11:28:59 PM UTC-5, Mike Thompson wrote:
> re-frame is a pattern for writing SPAs, using Reagent. 
> https://github.com/Day8/re-frame
> [...]
>     - pushes Reagent's FRP capabilities (via use of reaction)
"The magic thing about a reaction is that the computation it wraps will be 
automatically re-run whenever 'its inputs' change, producing a new output 
(return) value."

What if I have a heavy computation in there and I don't actually display that 
value right now in my app. Will it still be computed? Or is that something to 
take special care of? So only lightweight computations in reactions?

If that's the case, would it make sense to also create a lazy reaction that 
only get's realized/computed when it's deref'ed?

Cheers

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to