This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aws (1)
- # beginners (6)
- # boot (25)
- # cider (30)
- # cljs-dev (50)
- # cljsrn (45)
- # clojure (98)
- # clojure-austin (5)
- # clojure-czech (1)
- # clojure-dev (21)
- # clojure-dusseldorf (29)
- # clojure-germany (2)
- # clojure-greece (117)
- # clojure-italy (2)
- # clojure-nl (4)
- # clojure-russia (26)
- # clojure-serbia (10)
- # clojure-spec (123)
- # clojure-turkiye (1)
- # clojure-uk (27)
- # clojured (13)
- # clojurescript (57)
- # core-async (18)
- # cursive (13)
- # datomic (20)
- # defnpodcast (16)
- # emacs (8)
- # events (2)
- # figwheel (3)
- # instaparse (1)
- # jobs (3)
- # jobs-discuss (39)
- # klipse (9)
- # lumo (100)
- # mount (1)
- # numerical-computing (1)
- # off-topic (22)
- # om (34)
- # onyx (17)
- # pedestal (1)
- # perun (29)
- # re-frame (60)
- # reagent (16)
- # remote-jobs (8)
- # rethinkdb (6)
- # ring-swagger (19)
- # rum (1)
- # slack-help (1)
- # specter (3)
- # untangled (1)
- # yada (17)
say hypothetically, you are building a missile command mission control you have a button, which when pressed, fires a missile --> firing the missile = affect you have another view, which is displaying radar data getting this radar data ==> co-effect
@scknkkrer Be sure to read through the docs https://github.com/Day8/re-frame/blob/master/docs/README.md
Given your question, this is particular: https://github.com/Day8/re-frame/blob/master/docs/EffectfulHandlers.md
Yes I have just read it. Can you give me an example ? Simple, tiny. But explained...
If so, all I can do it point you back to the same docs. They have simple, tiny examples.
@danielcompton Any time plan for re-frame-trace? What are the main things that are missing? And how can I contribute? 🙂 The devtools seem to be a big selling point for redux, and it would be really cool to have something similar for re-frame.
re-frisk shows re-frame events in real time in a separate window. how is this different?
@curlyfry: I haven't looked at it since Christmas, I'll take a look soon and add some GitHub issues for remaining work
Hi Everyone, I am a android mobile application developer. I am interested in learning "clojurescript react native " using re-natal build tools. Can anyone suggest to learn from the scratch ?
@danielcompton Sounds great! Would you have time to flesh out the readme a bit as well? (Features, building, running, contributing)
@mikethompson thanks a lot but I mean real world (in action) example. I get it, I thkink.
@scknkkrer I was about to write a real world example but I checked out the docs you were already linked to and quite literally that example is in there.
I was going to give you the example of Local Storage. The docs handle it better but writing an effect handler allows you to write values to the local storage while being pure. Then on the other end of the spectrum, providing the local storage via a coeffect allows you to read from the local store while being pure
Yes, I think an http call in an event is a better example of the need for a effect handler. However I can’t think of an equivalent coeffect example for http calls 😛
@kasuko, English is not my main language. Sometimes I missed something and get f* up. 😄
Essentially you want your event handler to only “touch” data that comes in via the arguments and not to do anything other than return a value.
Therefore things like calling dispatch, or making http calls or writing logs or getting values from local storage
So we use effects and co-effects to get around that. They move side-effect code out of the event handlers and into other areas that are specifically designed to handle side effects
I don’t know, give me some time to eat this metadology. 😄 But thanks a lot to you @kasuko.
I know it’s a little confusing but rather than thinking about the effects or co-effects. Just focus on the event handler. If you do anything in them that isn’t using the arguments or returning a hashmap … then most likely you need either an effect or co-effect and it will make sense then.
scknkkrer: Sometimes it can be nice to use a local reagent/atom for state that is truly local (check out https://github.com/Day8/re-frame/blob/master/examples/todomvc/src/todomvc/views.cljs#L28 for example).
Thanks a lot for your message. I still try to see big picture. I am a quick-learner but I have hurry.
I have never written an event handler myself. I just use this one for HTTP handling https://github.com/Day8/re-frame-http-fx
Myself. I have only been programming with re-frame casually for about 3 months and professionally now for about 3 weeks 😛
Nice, but quick question comes; Isn’t there a post method support on day8’s ajax helper library ?