This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-20
Channels
- # announcements (1)
- # babashka (32)
- # beginners (100)
- # cider (43)
- # clj-kondo (4)
- # cljdoc (3)
- # cljs-dev (5)
- # cljsjs (2)
- # cljsrn (22)
- # clojure (170)
- # clojure-australia (27)
- # clojure-europe (25)
- # clojure-nl (3)
- # clojure-uk (76)
- # clojurescript (127)
- # conjure (14)
- # core-matrix (1)
- # cursive (9)
- # datomic (6)
- # defnpodcast (1)
- # emacs (32)
- # events (1)
- # expound (77)
- # fulcro (30)
- # graalvm (21)
- # graalvm-mobile (30)
- # helix (4)
- # honeysql (1)
- # hyperfiddle (1)
- # jackdaw (8)
- # jobs (6)
- # kaocha (1)
- # leiningen (4)
- # lsp (16)
- # malli (46)
- # meander (4)
- # off-topic (19)
- # pathom (10)
- # podcasts-discuss (1)
- # portal (2)
- # re-frame (7)
- # reagent (2)
- # releases (1)
- # remote-jobs (11)
- # rewrite-clj (8)
- # shadow-cljs (9)
- # tools-deps (243)
- # vim (1)
re-frame: no :event handler registered for: fetch-data-handler
how do i use an event handler that i've moved to another folder?
it seems to not know that it exists
whats odd is that i require it and even use some other event handlers from it, but for some reason it is unable to recognize that one. The others work fine.
Hi, everyone, how are you doing? I was digging some aspects of re-frame and I found this post of lambda-island, saying that after v0.9.0 it is ok to do:
(defn toggle-all-checkbox []
[:span
[:input {:type "checkbox"
:checked @(subscribe [:todos/all-complete?])}]
[:label {:for "toggle-all"} "Mark all as complete"]])
And I was wondering if it would be ok to do something like this:
(defn toggle-all-checkbox [user-id]
(let [todo-lists @(subscribe [:todos/list user-id])
all-complete-list (mapv (fn [{:keys [id]}]
{:id id
:all-complete? @(subscribe [:todos/all-complete? id]})
todo-lists)]
/* do something with it */
))
Basically, I would like to know if it is ok to subscribe to something based on the results of another subscription.
Does it make sense? Or am I missing something?