This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-15
Channels
- # announcements (9)
- # babashka (1)
- # beginners (1)
- # calva (7)
- # cider (13)
- # clj-kondo (2)
- # cljsrn (1)
- # clojure (40)
- # clojure-europe (2)
- # clojure-spec (9)
- # clojure-uk (1)
- # cursive (4)
- # datomic (2)
- # etaoin (1)
- # fulcro (4)
- # honeysql (3)
- # lsp (43)
- # malli (7)
- # music (1)
- # nbb (6)
- # off-topic (5)
- # polylith (8)
- # protojure (1)
- # re-frame (6)
- # react (17)
- # reagent (63)
- # releases (1)
- # shadow-cljs (8)
- # testing (8)
- # tools-deps (1)
- # vim (8)
Hi everyone, I'm new to using the REPL so I just wanted to check if I'm doing everything correctly. I've got shadow-cljs and cursive so I followed https://gist.github.com/akovantsev/44e2a0e10908785d1f40d3d3bcfff574. I connect to the REPL just fine but it doesn't seem to be linked to my app. When I run (js/alert "foo")
I don't see anything in the browser and doing @(rf/subscribe [:bar])
returns nil when I would expect it to contain values from the app-db. Any help would be appreciated!
@ronny463 check http://localhost:9630/runtimes. it should list your runtimes connected. there should be at least 2. how many do you have?
sorry so you have 2 runtimes for the :dev
build. the REPL picks the one that connects first and evals there
btw :dev
builds are an anti pattern in shadow-cljs. builds always represent the dev and release parts in one config
don't know why you have two runtimes though. do you load the code in an iframe or so?