Fork me on GitHub

While browsing re-frame-10x source code, I noticed that sometimes it uses bundled Regent and sometimes it relies on the provided one. E.g. re_frame_10x.cljs requires both

[reagent.impl.util :as util]
[reagent.impl.component :as component]
[reagent.impl.batching :as batch]
[ :as r]
[ :as rdom]
Is it intended? One would think that if you use the bundled version, you should always stick to it.


@p-himik re-frame-10x has to monitor the app's Reagent - when components get rendered, when animation frames occur, etc Plus it has its own, vendored Reagent which it uses to create its own UI, separate to the app, and the rendering of that shouldn't be monitored, otherwise re-frame-10x would be interfering with the application it is supposed t be monitoring.


Ah, I see. So it ends up being pretty tightly linked to the Reagent version. I wanted to try out the latest Reagent alpha but it has some changes that aren't compatible with the latest re-frame-10x version. Oh well.


To do the monitoring of the app's Reagent, it monkey patches some functions.