This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-27
Channels
- # aws (8)
- # beginners (172)
- # boot-dev (4)
- # cider (16)
- # cljs-dev (123)
- # cljsjs (4)
- # clojure (90)
- # clojure-brasil (3)
- # clojure-dev (7)
- # clojure-dusseldorf (1)
- # clojure-finland (1)
- # clojure-italy (59)
- # clojure-russia (3)
- # clojure-seattle (2)
- # clojure-seattle-old (1)
- # clojure-spec (40)
- # clojure-uk (28)
- # clojurescript (327)
- # clojurewerkz (3)
- # code-reviews (8)
- # cursive (4)
- # datomic (24)
- # editors (1)
- # emacs (19)
- # fulcro (147)
- # funcool (1)
- # graphql (1)
- # hoplon (34)
- # jobs-rus (1)
- # lein-figwheel (5)
- # leiningen (20)
- # luminus (14)
- # midje (1)
- # off-topic (8)
- # onyx (7)
- # parinfer (47)
- # pedestal (1)
- # perun (1)
- # portkey (46)
- # re-frame (25)
- # reagent (9)
- # remote-jobs (4)
- # ring-swagger (5)
- # rum (1)
- # shadow-cljs (113)
- # slack-help (8)
- # spacemacs (7)
- # sql (9)
- # tools-deps (23)
- # uncomplicate (3)
- # unrepl (3)
- # yada (6)
Hello all, is that a bad idea using this? (rf/dispatch [:some-service @(rf/subscribe [:some-variable]))
?
Sorry about my dumb question, but if I change the value of :some-variable
how does it influence dispatch?
@fabrao is this inside a view function?
just checking it wasn't inside an event handler itself
If that is itself within an on-click function, then the subscription won't be evaluated until the on-click function is called
i.e. #(rf/dispatch [:some-service @(rf/subscribe [:some-variable]))
I would recommend derefing into a let
outside of your on-click handler
Is there some batteries included library for doing remote subscriptions as described here? https://github.com/Day8/re-frame/blob/master/docs/Subscribing-To-External-Data.md
@joost-diepenmaat if you have a graphql endoint you could use re-graph, if not you could create a backand with lacinia-pedestal. What source do you want to connect to?
Ah, that’s interesting, thanks. For various reasons I would like to be able to use a mixture of “classic” REST and graphql-like apis
Here is a basic but expert-ish question. I am documenting the re-frame in my main language. And If there is, what is the complete difference between db-event handlers and effects-event handlers ? Just calling side effects or is there any other differences ?
@joost-diepenmaat Do you use that make-reaction machinery in your Re-frame subscriptions?
Speaking of GraphQL, edge just got an upgrade as well: https://github.com/juxt/edge/tree/master/app
Experimenting with that yes
quick flexbox question …. looking at flex box there is a CSS property called flex-direction