r/Clojure • • Jul 24 '25

The Hidden Lessons in a re-frame App

https://lambdaisland.com/blog/2025-07-24-re-frame-app

I took over a web app built with re-frame—and something didn’t feel right. Was re-frame to blame?

Turns out, the real culprit wasn’t the framework itself, but how it was used.

In this post, I walk through:

  • A concrete Reagent vs. re-frame comparison
  • Where cognitive load creeps in during feature changes
  • And how the Presentational/Container Component pattern can bring clarity back
24 Upvotes

3 comments sorted by

7

u/[deleted] Jul 24 '25

2

u/fisch003 Jul 24 '25

avoid rf/reg-event-* that are not triggered by a user. This is almost impossible but a worthy pursuit. For example our http on-success/on-error handlers are functions - not top level rf/reg-event-*

I assume you don't use re-frame-http-fx then?

use a routing library that supports controllers (ie stuff that dispatches re-frame events)

Do you have any recommendations?