This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-14
Channels
- # announcements (10)
- # babashka (14)
- # beginners (51)
- # calva (2)
- # cider (28)
- # cljs-dev (1)
- # cljsrn (3)
- # clojure (185)
- # clojure-dev (15)
- # clojure-europe (6)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-uk (45)
- # clojurescript (4)
- # conjure (12)
- # datomic (37)
- # duct (37)
- # figwheel-main (15)
- # helix (23)
- # interceptors (1)
- # jobs (1)
- # jobs-discuss (11)
- # jvm (5)
- # luminus (3)
- # malli (15)
- # off-topic (69)
- # pathom (8)
- # pedestal (2)
- # re-frame (7)
- # reagent (58)
- # reitit (33)
- # remote-jobs (1)
- # rum (14)
- # sci (7)
- # shadow-cljs (15)
- # spacemacs (9)
- # testing (19)
- # timbre (3)
- # tools-deps (14)
I am having a hard time implementing a concept the re-frame way: When a certain event :foo
is dispatched I want to check whether :bar
is already in the app-db and if not query it from the backend. I can't imagine how I am supposed to do that with pure events. I thought about writing an effect, but then again I am thinking I am maybe overcomplicating what I am about to do.
Check out #kee-frame, which has an elegant solution for this using url-based routing and controllers
From what I am understanding I probably should write some fx, that checks for the data in the cache and fires the appropriate effect for retrieval if not. Correct?
Correct, only the first "fx" in your last messages should be replaced with "event handler".