This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-16
Channels
- # aws-lambda (10)
- # beginners (52)
- # boot (42)
- # cider (2)
- # cljs-dev (8)
- # cljsjs (4)
- # cljsrn (10)
- # clojars (3)
- # clojure (48)
- # clojure-conj (4)
- # clojure-dev (19)
- # clojure-italy (7)
- # clojure-norway (4)
- # clojure-russia (44)
- # clojure-spec (70)
- # clojure-uk (34)
- # clojurescript (39)
- # cursive (35)
- # data-science (11)
- # datomic (7)
- # emacs (6)
- # fulcro (2)
- # hoplon (12)
- # jobs (1)
- # juxt (18)
- # lein-figwheel (2)
- # leiningen (4)
- # luminus (9)
- # off-topic (29)
- # om (46)
- # onyx (131)
- # other-languages (24)
- # parinfer (84)
- # pedestal (10)
- # portkey (45)
- # protorepl (1)
- # re-frame (15)
- # reagent (43)
- # ring-swagger (41)
- # schema (6)
- # shadow-cljs (293)
- # slack-help (2)
- # specter (42)
Does anyone use reg-*
functions (reg-event-db, e.t.c.) and register anything other than keywords?
Hi, I am using the day8.re-frame.http-fx
to make http request, but it keeps telling me Uncaught TypeError: re-find must match against a string.
when I trying to make a request.
Here is my code:
(reg-event-fx
:search-keyword
(fn [{:keys [db]} [_ word]]
{:db db
:http-xhrio {:method :get
:url (str "/p/www/stockinfogate/stock/namefinder?keyword=" word)
:response-format (ajax/json-response-format {:keywords? true})
:on-success [:search-keyword-success]
:on-failure [:search-keyword-failed]}}))
maybe it's time to uncomment that spec 😄