Fork me on GitHub
#re-frame
<
2017-01-29
>
hkjels15:01:46

What’s the idiomatic way of making a reaction trigger every second?

hkjels15:01:00

As of now, I’ve put the dispatch in my init-fn, that ensures that it only happens once every second. However, I’m trying to depend on my seconds-elapsed subscription from the subscription that needs it, but it’s only triggered if I deref to a view

qqq15:01:19

probably a js timer that fires off an event

qqq15:01:27

there's sample code in the re-frisk example list

hkjels18:01:28

@qqq: I kind of have that part solved nicely. It's the part where I have to deref in my view that probably can be solved in a nicer way