clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
sova-soars-the-sora 2021-04-01T00:13:24.429400Z

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-sora 2021-04-01T00:23:26.429600Z

setInterval seems to do the trick

🎯 2
2021-04-01T13:17:16.432300Z

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-himik 2021-04-01T13:44:48.433500Z

Yes.

p-himik 2021-04-01T13:46:49.433700Z

Also, we have #re-frame

caumond 2021-04-01T18:32:52.435300Z

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-himik 2021-04-01T18:48:00.435400Z

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.

caumond 2021-04-01T19:01:53.435600Z

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-himik 2021-04-01T19:03:49.435800Z

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.

😁 1
2021-04-01T22:11:39.438700Z

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.

2021-04-02T17:03:53.454600Z

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