This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-13
Channels
- # bangalore-clj (5)
- # beginners (94)
- # boot (145)
- # cljs-dev (4)
- # cljsjs (79)
- # cljsrn (18)
- # clojure (343)
- # clojure-dev (21)
- # clojure-dusseldorf (6)
- # clojure-india (1)
- # clojure-italy (2)
- # clojure-nl (4)
- # clojure-russia (62)
- # clojure-sanfrancisco (1)
- # clojure-spec (109)
- # clojure-taiwan (1)
- # clojure-uk (103)
- # clojurescript (102)
- # code-reviews (30)
- # component (1)
- # cursive (39)
- # datascript (7)
- # datomic (68)
- # emacs (11)
- # figwheel (1)
- # gorilla (1)
- # hoplon (234)
- # off-topic (46)
- # om (52)
- # onyx (32)
- # planck (9)
- # proton (4)
- # protorepl (5)
- # random (1)
- # re-frame (36)
- # ring (18)
- # ring-swagger (1)
- # specter (6)
- # untangled (3)
- # vim (56)
here’s what i came up with fwiw. uses load-field and appears to work so far. https://gist.github.com/ianchow/43143a8134670eb8dc5a8133f7c75aa8
@ianchow looks like it might work. I’d tend to want to isolate the implementation from the UI, so having core async involved is somewhat undesirable here. You are allowed to keep the top-level app (and therefore the reconciler) in some kind of global. Setting some kind of timeout (say, an interval timer you debounce) that runs a load via the reconciler is more what I’d recommend. Then, your mutations on the UI events can be completely detached from the implementation of fetch/rerender: the mutations themselves hit the debounced timer, and when the timer goes off it can send off the load via the reconciler.