This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-13
Channels
- # beginners (71)
- # boot (61)
- # clara (49)
- # cljs-dev (9)
- # cljsjs (2)
- # cljsrn (5)
- # clojure (55)
- # clojure-android (1)
- # clojure-italy (4)
- # clojure-spec (39)
- # clojure-uk (56)
- # clojurescript (69)
- # cursive (5)
- # data-science (1)
- # defnpodcast (6)
- # devcards (1)
- # duct (12)
- # figwheel (3)
- # fulcro (18)
- # leiningen (35)
- # lumo (19)
- # midje (1)
- # off-topic (22)
- # om (3)
- # onyx (23)
- # portkey (3)
- # re-frame (20)
- # reagent (23)
- # ring-swagger (6)
- # shadow-cljs (119)
- # specter (7)
- # unrepl (25)
not encouraged by mikethompson but you can do it with track https://github.com/vimsical/re-frame-utils/blob/master/src/vimsical/re_frame/fx/track.cljc
Thank you for your response. I will not do it this way if it’s not encouraged.
you may, @U3XCG2GBZ read the rational behind this not-too-uncommon request https://github.com/Day8/re-frame/issues/255
thanks!
@dimovich instead of using an atom could you dispatch events, the handler of which could check whether all image updates have now been complete
Or do people tend to first process the event in some other fn to get whatever data out of it
I’m thinking the first approach is best. I am a bit leery of things that may not print well in event handler args since it is nice to see log message during dev via something like the “debug interceptor” etc
I think another issue that occurred to me is that perhaps it is unsafe to pass an event if it isn’t handled immediately, due to React’s reuse of the synthetic event objects
@mikerod I usually go with the latter and generally try to keep JS objects out of my system as much as possible.
@mikerod I agree with @akiroz Written up here (see "Longer Answer" section) https://github.com/Day8/re-frame/blob/master/docs/FAQs/Null-Dispatched-Events.md
@mikethompson thanks for the details. I tried re-looking through the docs and didn’t notice there was some relevant info already. That gives good insight and certainly answers the question