This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-05
Channels
- # admin-announcements (1)
- # architecture (29)
- # beginners (244)
- # boot (5)
- # cider (2)
- # clara (8)
- # cljs-dev (58)
- # clojure (93)
- # clojure-australia (1)
- # clojure-dusseldorf (4)
- # clojure-france (1)
- # clojure-greece (16)
- # clojure-italy (9)
- # clojure-norway (1)
- # clojure-romania (1)
- # clojure-serbia (3)
- # clojure-spec (68)
- # clojure-uk (103)
- # clojurescript (41)
- # code-reviews (4)
- # community-development (4)
- # cursive (11)
- # data-science (2)
- # datascript (6)
- # defnpodcast (4)
- # docs (21)
- # duct (4)
- # emacs (118)
- # fulcro (120)
- # graphql (1)
- # jobs (1)
- # jobs-discuss (43)
- # leiningen (12)
- # off-topic (39)
- # onyx (11)
- # parinfer (13)
- # perun (1)
- # re-frame (2)
- # shadow-cljs (4)
- # spacemacs (5)
- # unrepl (6)
- # yada (1)
@madvas I'm trying to use cljs-react-material-ui package and I keep running into the react included twice problem in advanced optimization mode. As far as I can see it's required once in my core file and react should not be depended twice in the project. Do you have any tips on how to debug this issue?
I noticed there was an issue about this in the repo and various references to found while googling but no definite solution
any recommendations for doing currency arithmetic on the client? the computed values aren’t just for display; they’ll get saved. Typically, I’d just do this on the server, but curious if the alternative is viable.
can anybody help me how to fetch from clojurescript in a reagent environment a remote json and display it?
@borkdude i need simply a working example; the site should fetch a json and display it's contents.
This is an example using cljs-http: https://github.com/borkdude/HU-2017-05/blob/master/code/animals-crud/src-cljs/animals/crud.cljs
Sometimes I don’t get an error message when I move a namespace to some other directory, because the structure and namespace name don’t match, but my app doesn’t work anymore. Is this a known issue? I’d rather have an error message by the compiler. This is only when incrementally compiling.
@borkdude tools.namespace/refresh destroys namespaces before reloading code, and thus would make this show up as an error immediately
tools.namespace doesn't really work with Cljs 😉
ugh! I keep forgetting which channel I’m in, sorry
One thing that might affect this is that Cljs compiler doesn't remove removed files from compiler cache
Though, in that case the app would be working, as it would still use the old namespace. More specific test case would help on understanding what happens.
I notice I can reproduce it on first compilation by using the wrong namespace name in a file, e.g. /src/foo/bar.cljs with (ns foo.bar2)
instead of (ns foo.bar)
. It won’t produce an error but causes unexpected behavior. I’ll have to test this in a mini project
one thing worth mulling over is whether should be some kind of strict mode where ns names of CLJS sources must always be correct with respect to file system location
Yeah, or at least a warning from the compiler if it detects an inconsistency with cljs file structure?