This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-14
Channels
- # adventofcode (12)
- # aleph (8)
- # announcements (6)
- # babashka (16)
- # beginners (217)
- # biff (7)
- # calva (30)
- # chlorine-clover (4)
- # cider (3)
- # clj-kondo (15)
- # cljdoc (6)
- # clojure (50)
- # clojure-europe (86)
- # clojure-finland (2)
- # clojure-nl (1)
- # clojure-norway (37)
- # clojure-uk (2)
- # clojurescript (8)
- # cursive (10)
- # datomic (13)
- # emacs (1)
- # fulcro (41)
- # helix (1)
- # humbleui (2)
- # joyride (7)
- # juxt (4)
- # lsp (19)
- # off-topic (47)
- # pathom (14)
- # polylith (5)
- # portal (7)
- # reagent (10)
- # releases (4)
- # sci (1)
- # scittle (18)
- # shadow-cljs (54)
- # test-check (2)
- # tools-deps (28)
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 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
I see this: > In babashka or Clojure JVM, use the https://github.com/babashka/sci.nrepl dependency and run: