Fork me on GitHub
#re-frame
<
2021-04-03
>
david_clojurian18:04:38

Hey guys, re-frame is a clojurescript framework. Lots of source files are cljc files. Does this mean that re-frame works on the JVM as well?

p-himik18:04:13

Not sure if there's a persistent article on the topic, but IIRC it's been told that using re-frame on the backend doesn't really make sense because the sub graph won't work the same way.

david_clojurian18:04:06

I'm just looking for an elegant way to keep track of changes in the application state and like to infer new facts via ClaraRules and propagate these new fact back to the application state. That's why I remembered re-frame. Re-Frame is awesome to manage state and event producing and consuming, but sounds like it isn't an option here, right?

p-himik18:04:04

It is an option, and you should be able to use it. It just won't bring that much value - you effectively won't be using a whole third of it, the subscriptions.

david_clojurian20:04:45

Ok. Thanks. I will try it.

rgm23:04:25

Not necessarily related to the cljc, but I was surprised to discover it works great in a webworker. You can’t touch the DOM, but it’s still a disciplined way to organize state mutation. Can’t recall if I tried any subs.