This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-05
Channels
- # aleph (190)
- # bangalore-clj (4)
- # beginners (31)
- # boot (127)
- # braid-chat (2)
- # cider (2)
- # cljs-dev (79)
- # cljsrn (7)
- # clojure (81)
- # clojure-dev (1)
- # clojure-greece (40)
- # clojure-italy (3)
- # clojure-korea (8)
- # clojure-new-zealand (5)
- # clojure-russia (5)
- # clojure-spec (87)
- # clojure-uk (13)
- # clojurescript (50)
- # cloverage (10)
- # component (4)
- # core-async (37)
- # cursive (26)
- # datascript (20)
- # datomic (29)
- # editors (2)
- # emacs (12)
- # hoplon (63)
- # jobs (2)
- # lein-figwheel (1)
- # leiningen (17)
- # liberator (2)
- # off-topic (19)
- # om (31)
- # onyx (9)
- # pedestal (4)
- # proton (1)
- # re-frame (22)
- # reagent (13)
- # ring (1)
- # ring-swagger (9)
- # spacemacs (5)
- # specter (4)
- # untangled (24)
- # vim (29)
@johanatan using reg-event-fx
(and similar) would 'define' the keyword in Cursive. Cursive has pretty sophisticated static analysis already
@johanatan thanks!
event handler updates db (that works), but subscription function does not kick in. Any idea what I might be missing?
@deas: can you post your subscription code?
@andre @shaun-mahood It works now. Guess I was a little ignorant about changes introduced with 0.8. Thanks guys.
@shaun-mahood hi, i've fixed your issue, thanks for it, did try a fix?
@andre: Just got in to work, going to give it a try right away.
@deas: Great, glad you got it working.
@andre: The fix worked, thanks a lot!
@andre: Also, I'm probably going to work on a PR for https://github.com/Odinodin/data-frisk-reagent/issues/11 - if you have any thoughts just let me know, since I want it to feed nicely into re-frisk
Should the following code register for all changes to app-db?
(re-frame/register-sub :all-changes (fn [db] (reaction @db)))
@johanatan: Not sure on register-sub usage, but this works so it should just be a matter of translating it
(re-frame/reg-sub
:all-changes
(fn [db _]
db))
Are you targeting pre-0.8?
@lxsameer: Not sure for jquery specifically, but this may help https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md
There may also be a reagent or react library that does something similar to your jquery plugin
interested in how others are handling loading state in http or server fx interactions; e.g. displaying loading indicators ? do you simply store a true/false :loading?
key somewhere in the db ? obviously that doesn’t work well for multiple concurrent requests ?