Fork me on GitHub

Hi Should I dispatch from a subscription?


@souenzzo Dispatch basically is for delivering events from view/ajax etc., as far as I know. In which cases do you need to dispatch from subscription?


I was thinking of: some component requests the content X, if this content does not exist (nil), then I send a dispatch. In case of failure, I write a "false".


If I was in you place, I’d wrote utility function which checks input and dispatches error. And use that function from components.


Is Dmitri Sotnikov’s Web Development with Clojure, 2nd Ed ( a good guide to getting a handle on how clientside and serverside Clojure/Script works for developing web apps? (I’m mostly looking for a Clojure/Script version of Michael Hartl’s Ruby on Rails Tutorial (