Hi how does scittle.cljs-ajax work and how do I say method delete with it? I can successfully post and get
@benjamin.schwerdtner Have you read this? https://github.com/JulianBirch/cljs-ajax#ajax-request
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
I wasn't familiar with fetch before I included cljs-ajax and I'm considering dropping it, unless users convince me to keep it
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
I've made an issue here now: https://github.com/babashka/scittle/issues/23
@borkdude can we use the nREPL from nbb?
@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
@benjamin.schwerdtner Hmm, transit+json might be a good reason to actually keep cljs-ajax, or we should include transit explicitly
@raymcdermott yes https://github.com/babashka/scittle/tree/main/doc/nrepl
I see this: > In babashka or Clojure JVM, use the https://github.com/babashka/sci.nrepl dependency and run:
is that dependency also available via nbb.edn?
no, it's a JVM dep
so how can we work with it in nbb?
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
facepalm - ok
I'm totally using scittle in "prod" (tool) and it's a charm
Nice :)