This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-18
Channels
- # announcements (1)
- # asami (17)
- # babashka (43)
- # beginners (36)
- # biff (2)
- # calva (24)
- # clerk (3)
- # clj-kondo (9)
- # cljdoc (18)
- # clojure (16)
- # clojure-berlin (1)
- # clojure-europe (7)
- # clojurescript (8)
- # clr (4)
- # conjure (3)
- # cursive (2)
- # emacs (15)
- # funcool (4)
- # humbleui (2)
- # hyperfiddle (118)
- # kaocha (3)
- # malli (5)
- # membrane (23)
- # off-topic (16)
- # pathom (3)
- # reitit (25)
- # releases (3)
- # shadow-cljs (13)
- # xtdb (6)
Any recommendations for a clojurescript project template based on tools.deps rather than leiningen?
I think the least painful option would be making an up-to-date template in the spirit of npx create-cljs-app
. I always find deps.edn and leiningen to be hindrances and mostly unnecessary when I use shadow-cljs
After invoking the 'show' function I'm making an api call & update 'music-video-state' atom. But it doesn't rerender component after receiving the data from api call. What's wrong here?
(defonce music-video-state (atom {:youtube-id ""
:tags []}))
(defn get-music-video-tag-list [music-video-state youtube-id]
(ajax/GET (str "
{:handler #(swap! music-video-state assoc :tags (:data %))
:response-format :json
:keywords? true}))
(defn show [youtube-id]
(api/get-music-video-tag-list music-video-state youtube-id)
(let [tags (:tags @music-video-state)]
[:div "hello"
[:ul
(for [tag tags]
[:li (:tag_name tag)])]]))
If it's Reagent, then #C0620C0C8 would be more suitable.
You have to use reagent.core/atom
instead of cljs.core/atom
.