Fork me on GitHub
#reagent
<
2016-12-23
>
vikeri08:12:24

Hi! I’m having an issue with re-frame that might stem from reagent. I would like to monitor a reaction using add-watch so that I can run re-frame in the background without mounting a react component (using Headless React Native). add-watch works as expected if I have a component mounted that derefs that reaction but it does not work if I just add add-watch. I guess this behaviour makes sense for 99.9% of the use cases. But is there a way to make add-watch always work for reactions or is there a reagent version of add-watch for reactions?

juhoteperi08:12:58

@vikeri track!

vikeri09:12:30

@juhoteperi Thanks! I’ll try that out!

vikeri09:12:36

@juhoteperi I owe you a 🍺 on the next ClojuTRE