This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-12
Channels
- # announcements (4)
- # asami (3)
- # babashka (18)
- # babashka-sci-dev (2)
- # beginners (55)
- # calva (18)
- # clj-commons (23)
- # clj-kondo (2)
- # cljfx (7)
- # cljs-dev (15)
- # clojure (96)
- # clojure-europe (43)
- # clojure-losangeles (3)
- # clojure-nl (2)
- # clojure-uk (11)
- # clojurescript (1)
- # datalevin (2)
- # datomic (10)
- # events (1)
- # google-cloud (4)
- # gratitude (16)
- # helix (3)
- # hyperfiddle (63)
- # inf-clojure (13)
- # introduce-yourself (4)
- # ipfs (2)
- # jobs (2)
- # jobs-discuss (12)
- # leiningen (7)
- # lsp (15)
- # off-topic (38)
- # polylith (24)
- # portal (27)
- # remote-jobs (8)
- # sci (27)
- # spacemacs (5)
- # specter (1)
- # sql (5)
- # xtdb (41)
I have a :table-view
that I have a fx/sub-ctx
function delivering the items for. There is potentially filtering going on in that function that could change the number of items (which can be changed dynamically by the user). Is there a convenient way to get the number of rows currently rendered in the table for informational purposes in another part of the UI (this can be pretty high/thousands)? Like a listener on the table for the size?
Oh, that's right...the latter is actually a decent option. I didn't want to duplicate the work inside that function elsewhere (it's a massive filter/sort), but I forgot it is subscribe/as needed so it should be fine to have it in multiple places? i.e. where I need the results of that same function to get the table items, and in a different component where I need the count
It's working plenty fast...so I think it must be working the way I think it does/want it to. https://giphy.com/gifs/travisband-excitement-thats-cool-this-is-Wo6W02pf1HMsAljJ8X