This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-22
Channels
- # admin-announcements (8)
- # beginners (23)
- # boot (121)
- # cider (4)
- # clojure (19)
- # clojure-bangladesh (14)
- # clojure-berlin (3)
- # clojure-brasil (2)
- # clojure-dev (5)
- # clojure-russia (13)
- # clojure-sweden (1)
- # clojurescript (99)
- # clojutre (3)
- # datascript (2)
- # funcool (1)
- # jobs (1)
- # om (23)
- # overtone (1)
- # reagent (10)
- # spacemacs (3)
@benzen: have you read through the re-frame Wiki? If not, I'd have a browse.
@mikethompson: I did, but it still wasn't clear to me why you'r using core async for this part
dispatched events have to be queued
And not performed synchronously
Use of core.async
is there for that reason
https://github.com/Day8/re-frame/wiki/FAQ#3-why-cant-i-call-dispatch-sync-in-an-event-handler
That should give you a feel for why dispatch
has to be async (queued for handling "later")
So, in summary:
1. You first have to understand why a dispatch
has to be handled aysnc
2. Then realise that use of core.async
is an implementation detail in the service of that need.
@mikethompson: thank you