Fork me on GitHub

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?


@juhoteperi Thanks! I’ll try that out!


@juhoteperi I owe you a 🍺 on the next ClojuTRE