This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-19
Channels
- # announcements (3)
- # babashka (42)
- # beginners (84)
- # calva (3)
- # cider (13)
- # clj-kondo (9)
- # cljs-dev (6)
- # cljsrn (32)
- # clojure (47)
- # clojure-argentina (4)
- # clojure-france (2)
- # clojure-spec (17)
- # clojure-uk (15)
- # clojuredesign-podcast (4)
- # clojurescript (41)
- # conjure (53)
- # cursive (16)
- # data-science (5)
- # duct (1)
- # emacs (11)
- # events (1)
- # exercism (3)
- # fulcro (48)
- # graalvm (20)
- # graphql (1)
- # joker (3)
- # kaocha (2)
- # malli (2)
- # meander (6)
- # pathom (3)
- # planck (18)
- # rdf (3)
- # re-frame (14)
- # ring-swagger (1)
- # shadow-cljs (15)
- # specter (1)
Is there any way to make sure just one instance of an event is called each animantionframe, even if there is more in queue? In other words, can I hook into the router queue somehow and modify it (removing all duplicate events), before all queued events is called
If having the event dispatched at most once per animation frame is a hard requirement, debouncing won't help.
I want to create an effect handler that kicks of another event on a javascript callback. What is a proper way to do this?
(re-frame/reg-fx
::zenroom
(fn [script]
(doto zenroom
(.print (fn [s] #_here i want to dispatch or write to db for every time print happens in script))
(.script script)
.zenroom-exec)))
So for every script .print
can be called 0 to n times
I want the results
If someone has any ideas, can he or she please let me know? Maybe the whole reg-fx idea is wrong to start with
Great thanks
I thought about it but wasnt sure if it was the right approach