Fork me on GitHub
#scittle
<
2022-11-14
>
Benjamin13:11:44

Hi how does scittle.cljs-ajax work and how do I say method delete with it? I can successfully post and get

borkdude13:11:25

imo cljs-ajax isn' really necessary with scittle, now that fetch is a thing: https://stackoverflow.com/a/40284425/6264 you might just use that

borkdude13:11:52

I wasn't familiar with fetch before I included cljs-ajax and I'm considering dropping it, unless users convince me to keep it

borkdude13:11:39

ah I see that cljs-ajax config in scittle is pretty minimal and doesn't even include the ajax-request fn https://github.com/babashka/scittle/blob/77561555769686236df608f55e0d0cc6936dcc04/src/scittle/cljs_ajax.cljs#L9-L10

genRaiy14:11:29

@borkdude can we use the nREPL from nbb?

Benjamin14:11:10

@borkdude ah damn I was copying from the guestbook example. If I use fetch I think I also have to check how transit+json works but you are right to use fetch

borkdude14:11:12

@benjamin.schwerdtner Hmm, transit+json might be a good reason to actually keep cljs-ajax, or we should include transit explicitly

☺️ 1
genRaiy15:11:02

I see this: > In babashka or Clojure JVM, use the https://github.com/babashka/sci.nrepl dependency and run:

genRaiy15:11:23

is that dependency also available via nbb.edn?

borkdude15:11:46

no, it's a JVM dep

genRaiy15:11:19

so how can we work with it in nbb?

borkdude15:11:36

The reason for this is that browser's can't open TCP sockets so there is a bb or JVM process running in between. nbb has nothing to do with scittle

Benjamin16:11:17

I'm totally using scittle in "prod" (tool) and it's a charm

🎉 3