This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-08
Channels
- # announcements (6)
- # babashka (78)
- # beginners (84)
- # bristol-clojurians (5)
- # calva (50)
- # chlorine-clover (45)
- # cider (14)
- # clj-kondo (18)
- # cljs-dev (2)
- # clojars (2)
- # clojure (387)
- # clojure-android (3)
- # clojure-europe (6)
- # clojure-gamedev (3)
- # clojure-germany (3)
- # clojure-nl (18)
- # clojure-spec (5)
- # clojure-uk (36)
- # clojurescript (8)
- # clojurex (1)
- # conjure (1)
- # css (1)
- # cursive (32)
- # data-science (1)
- # datomic (11)
- # docker (61)
- # duct (17)
- # emacs (7)
- # figwheel-main (3)
- # fulcro (19)
- # jobs-discuss (3)
- # joker (1)
- # leiningen (23)
- # malli (11)
- # mount (6)
- # off-topic (30)
- # pathom (14)
- # pedestal (2)
- # phzr (1)
- # re-frame (11)
- # reagent (3)
- # reitit (5)
- # ring-swagger (3)
- # rum (1)
- # shadow-cljs (113)
- # slack-help (9)
- # spacemacs (16)
- # specter (4)
- # sql (14)
- # vscode (2)
- # windows (3)
- # xtdb (12)
@m_traven Hi, @lucio and I have been working on a native reagent datatable for the last few weeks. It’s still very much a work in progress but I think it’s better than any other options, unless you need something really powerful in which case a react library like ag grid will do anything you could think of. But if you just need a lightweight solution with client side pagination, filtering, searching and sorting then this is probably useful https://github.com/armincerf/reagent-datatable
Thanks for the tips! I tried switching over to ag-grid and so far its working pretty well.
Another option in Handsontable. We use it from reagent/re-frame. And it’s working out well for us.
ag grid is great, just make sure you understand the potential costs, it can get expensive depending on your use case
Hi all, how would it be possible to have a reg-event-fx
which always execute a db
operation but only sometimes executes a dispatch
? In other words, something like this:
(reg-event-fx
:some-fx
{:db ...
:dispatch (if ..)})
I've tried the above but it fails because I think :dispatch
can't accept nil
values.Oh! Great idea, I'll try that as well.
I've done the following and it seems to work:
(let [switch ...
event-m {:db (assoc db ...)}]
(if switch
(assoc event-m :dispatch [...])
event-m))