Fork me on GitHub
#re-frame
<
2019-12-19
>
p-himik12:12:09

Judging by the code, it seems safe to deref a sub from within a regular sub handler. Is it really so?

Lu12:12:06

Not sure if it’s fine but certainly You can use reg-sub-raw and subscribe all you want from the sub

p-himik12:12:02

Yeah, I know. But it creates a lot of unnecessary noise when the handler itself becomes (fn [x _] x).

👍 1
wotbrew14:12:55

Is there an accepted way to gather timing statistics for different actions in a re-frame application? Say I've got a user interaction that kicks off a handler chain that includes async IO, and I want to measure the time until completion from the users perspective.

wotbrew14:12:53

re-frame 10x?

donavan14:12:44

Most likely, as another option there are tracing hooks all throughout re-frame that you could use (if I've read the code correctly that is!)

wotbrew14:12:54

I'll take a look 🙂