This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-23
Channels
- # beginners (114)
- # cljsrn (19)
- # clojure (35)
- # clojure-austin (1)
- # clojure-italy (9)
- # clojure-russia (8)
- # clojure-spec (6)
- # clojure-uk (5)
- # clojurescript (32)
- # datomic (12)
- # editors (3)
- # emacs (1)
- # hoplon (4)
- # jobs (6)
- # jobs-discuss (1)
- # luminus (2)
- # onyx (11)
- # parinfer (2)
- # portkey (6)
- # re-frame (7)
- # reagent (9)
- # remote-jobs (3)
- # schema (2)
- # shadow-cljs (23)
- # spacemacs (2)
- # specter (13)
- # vim (3)
- # yada (6)
is there a way to throttle a subscription in re-frame?
say, I know I have my app-db changing frequently, but there is a subscription that is expensive and I want it to re-compute less often
@yury.solovyov maybe a layer 3 subscription is what you need?
https://github.com/Day8/re-frame/blob/master/examples/todomvc/src/todomvc/subs.cljs#L30
tho I think it might be throttled already by re-frame by using rAF, but I'm not sure
Haven't tried them myself yet, but they seem apt for your use case
@yury.solovyov did you find a solution? How about those subscriptions I mentioned above?