This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-03
Channels
- # aleph (1)
- # announcements (3)
- # aws (36)
- # babashka (35)
- # beginners (25)
- # cider (14)
- # clj-kondo (3)
- # clojure (154)
- # clojure-europe (8)
- # clojure-italy (2)
- # clojure-nl (5)
- # clojure-serbia (1)
- # clojure-uk (133)
- # clojurescript (36)
- # cursive (15)
- # data-science (7)
- # datomic (16)
- # fulcro (34)
- # immutant (9)
- # jackdaw (5)
- # jobs (1)
- # leiningen (39)
- # off-topic (25)
- # pathom (42)
- # planck (13)
- # play-clj (1)
- # re-frame (18)
- # reagent (6)
- # reitit (3)
- # remote-jobs (1)
- # ring-swagger (16)
- # shadow-cljs (67)
- # sql (22)
- # testing (1)
- # uncomplicate (2)
- # vim (21)
- # vscode (6)
anyone see anything glaringly wrong with this? getting re-frame: no handler registered for effect: :dispatch-debounce . Ignoring.
(re-frame/reg-event-fx
::update-programs
[re-frame/trim-v]
(fn [cofx [id search-text]]
(let [db (:db cofx)]
{:dispatch-debounce {:key ::debounced-programs
:event [::query-programs search-text]
:delay 250}
:db (assoc-in db [:selects id :text] search-text)
})))
@shanelester55 looks like you haven’t registered the debouncing effect handler
Ah. ok. so my problem is at a higher level then
will look into that
thanks!
at least not last I checked - https://github.com/day8/re-frame/pull/258#issuecomment-262658598
Ah ok. thank you. I must have misread in a github thread, because I thought it was. My mistake 🙂
there is the built-in :dispatch-later
that sometimes is what you need, other times it isn’t enough
I’ve so far written my own :dispatch-debounce
fx handler since I wasn’t entirely happy with existing libs - but was inspired by their impl
https://github.com/johnswanson/re-frame-debounce-fx has been where I’ve drawn inspiration from - and perhaps it’s all you need.
ahh that may be what i need. thanks again!