This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-29
Channels
- # announcements (9)
- # aws (1)
- # beginners (133)
- # boot (2)
- # calva (94)
- # cider (48)
- # cljdoc (7)
- # cljsrn (22)
- # clojure (128)
- # clojure-europe (22)
- # clojure-finland (7)
- # clojure-greece (6)
- # clojure-losangeles (3)
- # clojure-nl (81)
- # clojure-spec (30)
- # clojure-uk (60)
- # clojure-ukraine (1)
- # clojurescript (45)
- # core-async (26)
- # cursive (18)
- # datomic (12)
- # defnpodcast (1)
- # duct (4)
- # editors (4)
- # emacs (6)
- # fulcro (37)
- # graphql (4)
- # jobs (2)
- # jobs-rus (1)
- # juxt (7)
- # kaocha (2)
- # leiningen (1)
- # nrepl (22)
- # off-topic (2)
- # re-frame (16)
- # reagent (8)
- # reitit (22)
- # ring-swagger (5)
- # shadow-cljs (81)
- # tools-deps (4)
not sure tbh. could be that some sort of dev-only code in React, Reagent or re-frame is obfuscating the issue
@tomaas yes, FIFO
How does one go about making effects for window events? say a gradient shift for the entire baground on mouse move?
Hi, How to avoid multiples AJAX requests when a field change its state? I mean, if the user is typing a name I don’t want to search for every letter just at the end
I found that cljs-ajax has a property :on-request where we can get request and then maybe we can cancel it
or other option is to put a timeout to execute the request and cancel it if the field changes before the timeout expires
The latter is pretty close to what I use. On change, I fire an event that checks to see if there's a pending timeout, and if there is, cancel it and start a new timeout. When the timeout fires, it triggers an event that does the actual ajax call.
Thanks @UE35Y835W, I read about throttle but I really didn’t get it, and it worked with debounce so I didn’t look too much, but thank you any way.