This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-04
Channels
- # aleph (4)
- # bangalore-clj (1)
- # beginners (89)
- # boot (16)
- # braveandtrue (4)
- # cider (1)
- # cljs-dev (6)
- # cljsrn (90)
- # clojure (132)
- # clojure-austin (1)
- # clojure-dusseldorf (4)
- # clojure-italy (12)
- # clojure-portugal (2)
- # clojure-spec (13)
- # clojure-uk (41)
- # clojurescript (142)
- # code-reviews (19)
- # conf-proposals (1)
- # datascript (6)
- # datomic (7)
- # graphql (12)
- # jobs-discuss (3)
- # keechma (23)
- # leiningen (3)
- # lumo (22)
- # off-topic (7)
- # om (21)
- # onyx (8)
- # parinfer (46)
- # pedestal (3)
- # perun (3)
- # re-frame (10)
- # reagent (30)
- # ring (1)
- # rum (2)
- # spacemacs (1)
- # sql (2)
- # testing (17)
- # yada (32)
@ag
A. If I understand you correctly, you are asking that (subscribe :query-id)
be interpreted as (subscribe [:query-id])
B That would certainly be a win in some cases ... but it isn't a complete win because there are some annoying tradeoffs
C. How should the following be interpreted (subscribe :query-id something)
:
- (subscribe [:query-id something])
or
- (subscribe [:query-id] something)
This will only get worse in the future because we may well introduce a further argument (if ever we move re-frame from a framework to a library)
But it sounds like this tripped you up. Is there a better error message that we should supply perhaps? I'm assuming we actually catch this and report it.
What's the difference between last two things? I personally probably would like re-frame to error out only when there's ambiguity
Hi there! Does anybody here know if I’m allowed to return functions from a re-frame subscription?
I seem to remember that I must only return ‘plain data’, nothing fancy such as functions.
Try it! It works in my case, but I don't know about comparability weather (a=a and a!=b) holds true which is probably important.
@mikethompson haven't seen many people request this, but would you consider adding support for global interceptors registration?