This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-02
Channels
- # aws-lambda (1)
- # beginners (28)
- # boot (54)
- # cider (11)
- # clara (28)
- # cljs-dev (74)
- # cljsrn (13)
- # clojure (342)
- # clojure-austin (3)
- # clojure-dusseldorf (4)
- # clojure-france (2)
- # clojure-greece (11)
- # clojure-italy (42)
- # clojure-poland (7)
- # clojure-russia (11)
- # clojure-spec (44)
- # clojure-uk (156)
- # clojure-ukraine (4)
- # clojurescript (102)
- # cursive (17)
- # datascript (19)
- # datomic (17)
- # dirac (39)
- # emacs (22)
- # funcool (56)
- # hoplon (25)
- # jobs (3)
- # jobs-discuss (31)
- # leiningen (2)
- # luminus (4)
- # lumo (3)
- # off-topic (47)
- # om (51)
- # onyx (57)
- # re-frame (13)
- # reagent (57)
- # remote-jobs (15)
- # ring (9)
- # ring-swagger (7)
- # robots (2)
- # rum (6)
- # specter (16)
- # sql (7)
- # test-check (37)
- # untangled (7)
- # yada (5)
I hit an issue where trying to clear handlers broke the ability to reload my application
Mostly just to avoid the ton of warning output about handlers and subs being overwritten -- there was no other functional reason to clear them
question regarding re-frame-async-flow-fx: why events in rules specified as keywords (event ids) but full event vectors?
use case: I need to do 10 sequential http puts which differs only in one field in payload (passed as event parameter), and once those succeed do some other http put
@pandeiro that sounds like what this issue is about: https://github.com/Day8/re-frame/issues/204
@campeterson for login redirects, I wrote a macro that wrapped my defroutes, to check for the current-user and redirect to "/" the "/" redirect handles it from there.
(defmacro user-route
[name path let-expr & body]
`(secretary.core/defroute ~name ~path ~let-expr
(let [cu# (re-frame.core/subscribe [:current-user])]
(if (deref cu#)
(do ~@body)
(accountant.core/navigate! (str "/?return-to=" ~path))))))
does that help much?since it's all client-side, redirecting to "/" and then letting that route do auth / etc seemed all gain and no pain 🙂
i have an effect that fetches data from a server, and naturally if i run it over and over the latest response isn't always the latest requests. since my API library returns channels i can store the channels in app-db and close them whenever the event fires that dispatches the effect...