Fork me on GitHub
#re-frame
<
2017-09-23
>
yury.solovyov18:09:03

is there a way to throttle a subscription in re-frame?

yury.solovyov18:09:15

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

reefersleep18:09:58

@yury.solovyov maybe a layer 3 subscription is what you need?

yury.solovyov18:09:06

tho I think it might be throttled already by re-frame by using rAF, but I'm not sure

reefersleep18:09:10

Haven't tried them myself yet, but they seem apt for your use case

reefersleep22:09:54

@yury.solovyov did you find a solution? How about those subscriptions I mentioned above?