This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-17
Channels
- # adventofcode (76)
- # announcements (6)
- # beginners (103)
- # boot (28)
- # calva (128)
- # cider (48)
- # cljs-dev (40)
- # clojure (268)
- # clojure-austin (2)
- # clojure-dev (2)
- # clojure-europe (47)
- # clojure-italy (10)
- # clojure-nl (17)
- # clojure-spec (2)
- # clojure-uk (15)
- # clojurescript (45)
- # code-reviews (14)
- # cursive (5)
- # data-science (2)
- # datascript (1)
- # datomic (52)
- # duct (4)
- # emacs (2)
- # figwheel (1)
- # figwheel-main (4)
- # fulcro (13)
- # hyperfiddle (51)
- # leiningen (19)
- # nrepl (40)
- # off-topic (45)
- # pathom (3)
- # pedestal (28)
- # portkey (7)
- # re-frame (25)
- # reagent (76)
- # reitit (7)
- # shadow-cljs (92)
- # slack-help (3)
- # specter (5)
- # timbre (2)
- # tools-deps (39)
- # unrepl (1)
- # vim (13)
Is this still the ideal way to find the position (start, end) of a regex match in clojurescript? https://stackoverflow.com/questions/18735665/how-can-i-get-the-positions-of-regex-matches-in-clojurescript
Hey all, been messing around with Shadow and AWS some, I wrote a quick post of how to work with both https://dev.to/royalaid/aws-api--lambda--cljs-29ca
@mateus.pimentel.w What env are you working from? Do you have a repl set up?
@mateus.pimentel.w in Chrome it mostly just works, especially if you're using cljs-devtools
nice, i realized that when i was using figwheel, i could set breakpoints on the .cljs files even with hot reloading. Now with shadow-cljs i think i will have to do some configuration in order for it to work like that
as they were with fighwheel, which setted a kind of unique id for every resource ( with ?timestamp= or something like that )
(shameless plug) for desperate cases when you need to debug/explore something in the middle of complex foreign code, there is Dirac DevTools[1], it has complicated setup, but it allows you to eval cljs code in the context of a paused breakpoint. [1] https://github.com/binaryage/dirac
I've set up Material UI using the npm bundles option in figwheel and a webpack bundle. Problem is, I'm getting two versions of React in my page. One from the webpack bundle (which it needs to bundle Material UI), and another from Reagent's use of clsjs.react. Is this something folks have dealt with before?
@bryan778 an example https://github.com/clojure/tools.deps.alpha/blob/master/deps.edn#L17
@dnolen hm. I tried that, but now get build errors calling Reagent function (like reactify-component
).
yep, it’s using Object.freeze: https://github.com/facebook/react/blob/master/packages/react/src/ReactElement.js#L158
@bryan778 the problem is that your replacement is not specifying that it provides react
that last couple sections of https://clojurescript.org/guides/webpack cover this
you should examine the build configs here very closely - they are pretty simple but the pattern must be followed exactly
I've got the demo echo working and not quite sure what it is doing when it sets body to (event :body)
. I thought maybe if i replace that with some custom edn i would get the edn back but i'm not understanding what's going on here.
I was mistakenly under the impression that it was piping the input through js->clj and output through clj->js
heyya, I've been working with it a bit. let me know If you still need some support. I'll try to help out
@dnolen I think that makes sense. I'll give it another shot this evening. Thanks for the help.