This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-03
Channels
- # babashka (17)
- # beginners (166)
- # calva (97)
- # cider (4)
- # clara (2)
- # clj-kondo (46)
- # cljsrn (5)
- # clojure (334)
- # clojure-canada (1)
- # clojure-dev (144)
- # clojure-europe (14)
- # clojure-germany (5)
- # clojure-nl (10)
- # clojure-spec (1)
- # clojure-uk (46)
- # clojurescript (50)
- # conjure (1)
- # core-async (52)
- # core-typed (5)
- # cursive (3)
- # datomic (3)
- # emacs (11)
- # figwheel (16)
- # figwheel-main (9)
- # fulcro (29)
- # graalvm (19)
- # graphql (14)
- # helix (46)
- # hoplon (4)
- # hugsql (2)
- # jobs (2)
- # jobs-discuss (1)
- # juxt (15)
- # kaocha (6)
- # off-topic (9)
- # pedestal (7)
- # portkey (7)
- # re-frame (10)
- # reagent (29)
- # shadow-cljs (13)
- # spacemacs (70)
- # sql (13)
- # tools-deps (26)
- # xtdb (23)
https://clojureverse.org/t/introducing-shadow-cljs-inspect/5012 like the word used here
@ashnur Personally I simply use the repl to inspect any data. I tried shadow-cljs inspect and tbh, it doesn't feel that easy to use (or maybe I didn't get how to use it correctly).
I can evaluate stuff from my editor and print into browser console, very neat trick, but it doesn't help me get access to the state
In theory you could also inspect the values directly in dev tools but they don’t speak CLJS
We've been discussing the devtools internally. If we get some breathing room, I'd love to have one of our devs add JSONML support to the react devtools.
Although - we're pretty small, so it might be better for us to sponsor someone to look at that.
There was some discussion about this with the react team, the rationale being that they need to also support immutable.js and immer so some kind of custom formatting is needed. I don’t think that went anywhere though.
I’m currently trying to gett some time to work on some code for inspecting/manipulating components at a REPL
example, imagine:
(-> (query-component MyComponent)
(inspect))
;; => {:type MyComponent
;; :props {:foo "bar" :baz {:asdf "jkl"}}
;; :state [{:count 3}]}
v true. I just think that we’ve (or at least, I have) trained ourselves to eschew the REPL for UI programming due to lack of capability
lots of people I’ve worked with just use console.log. and say how much they miss effectively using chrome’s debugger w/ their code
I think what I'd want from the repl tool is a clicky for the element somehow. So I don't need to filter a list. But maybe that's a separate tool.
@lilactown may I ask which editor/repl setup are you using?
with new tools, the more I think about the more sure I am that spacemacs could work better. To be honest, the last straw was really something I lost on the long run, I wrote comma first at the time (this was before code formatters)
https://clojurians.slack.com/archives/CRRJBCX7S/p1591199261128000 would this work with hooks?