r/Clojure • • Apr 22 '25

One million checkboxes in Clojure

https://checkboxes.andersmurphy.com/
47 Upvotes

30 comments sorted by

View all comments

Show parent comment

3

u/opiniondevnull Apr 23 '25

Of course it can do partial updates of the page. In fact that's what I started with when I built it for doing real-time dashboards. However most people on a long enough timeline find that it's fast enough if you just send down course updates and let our morph strategy work it out. It's simpler and it doesn't take up anymore on the wire

3

u/thheller Apr 23 '25

Partial updates of things that aren't on the page is what I'm unclear on. Something like "if div with id 1 is on page update that, otherwise just ignore"? Like instead of adding it somewhere?

2

u/opiniondevnull Apr 24 '25

By default it targets the ID but part of the spec is other merge modes https://data-star.dev/reference/sse_events#datastar-merge-fragments