Fork me on GitHub
#re-frame
<
2015-12-16
>
jaredly04:12:50

is there a way to force an update of the reaction graph? (while debugging, in repl)

mikethompson05:12:44

From memory, do this: (reagent.core/flush)

mikethompson05:12:58

But ... nornally you never need to do that

mikethompson05:12:08

updates happen via request annimation frames, which is only 16ms away

mikethompson05:12:40

Are you using reagent 0.5.1 ?

mikethompson05:12:20

I wonder if, in a round about way, you are asking this question (bear with me if it appears unrelated to start with) https://github.com/Day8/re-frame/wiki/FAQ#5-how-can-i-inspect-app-db

jaredly05:12:51

I failed to wire up the reactions in the right way, and so I re-wrote the subscription to have the right reactions… but then things wouldn’t update right

jaredly05:12:04

this is using figwheel to hot reload everything

mikethompson05:12:25

Be sure to read that link above

mikethompson05:12:43

(Although I acknowledge it is slightly unrelated)

mikethompson05:12:43

Apart from that (sorry to throw links at you) ... this can help too: https://github.com/Day8/re-frame/wiki/Debugging

jaredly05:12:42

simple_smile links are great

jaredly05:12:42

but yeah, I just ended up refreshing the page

jaredly05:12:30

basically, I had a subscription, that got something out of the db outside of a reaction, which made it pretty stuck. then I redefined the subscription, and re-rendering everything didn’t fix it

mikethompson05:12:49

Right, that kind of a messup doesn't happen too often.

jaredly05:12:14

so refresh is the only way to re-load all the subscriptions?

mikethompson05:12:37

Well, it is never a problem for me. But I'm trying to imagine something really complicated and changing, and I'm thinking that might screw things up enough to force a restart

mikethompson05:12:15

Thinking about it more ... assuming the figwheel reload forces a complete redraw of the components, I'm a bit puzzled about how anything could get messed up.

jaredly05:12:39

yeah. I dunno. it’s not a big problem.