Fork me on GitHub
#re-frame
<
2017-03-25
>
souenzzo01:03:11

Hi Should I dispatch from a subscription?

armed02:03:40

@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?

souenzzo23:03:00

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".

armed04:03:24

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

jtth20:03:02

Is Dmitri Sotnikov’s Web Development with Clojure, 2nd Ed (https://pragprog.com/book/dswdcloj2/web-development-with-clojure-second-edition) 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 (https://www.railstutorial.org/book/))