Fork me on GitHub
#clojurescript
<
2021-04-01
>
sova-soars-the-sora00:04:24

I would like my js client to ask for new posts from the server every X seconds. I am simply nesting a call to check-loop within check-loop. is am running into many more calls than expected. how can i get the desired behavior of a function being called every X seconds?

sova-soars-the-sora00:04:26

setInterval seems to do the trick

🎯 6
Stuart13:04:16

In re-frame, if I want to start and stop a timer on an event, would this go in a co-effect and a use-case for reg-event-fx ?

p-himik13:04:49

Also, we have #re-frame

caumond18:04:52

Hi, first question. I use some templates which reference online css files. What is the best practise, continue to reference them and be up to date. Or copy paste it in my local resources to freeze the behavior.

p-himik18:04:00

I assume you mean CDNs. They have pros and cons, there's no clear-cut answer. This is (was) a very popular topic, there's a *lot* of discussions online.

caumond19:04:53

I was much more basic in my question. I found people referencing remote css all the time and wonder why. Now I know cdn I understand why. I have a doubt on their stability. Both in terms of content and availability. Ill read. Thx

p-himik19:04:49

Very often the answer behind other people's choice in such matter is "laziness". :) It's very easy to just put a CDN URL there and forget about it till something breaks or till you rewrite the whole thing.

😁 3
Drew Verlee22:04:39

Has anyone deployed an android app using cljs and expo recently? I'm trying to follow the instructions here and i'm worried the entire pipeline is dependent on this idea of a react native sdk which i'm reading is now officially supported.

Drew Verlee17:04:53

I was able to create an Android app using another project.