This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-18
Channels
- # aleph (45)
- # aws (4)
- # beginners (56)
- # boot (2)
- # cider (45)
- # clara (2)
- # cljs-dev (9)
- # cljsrn (31)
- # clojure (71)
- # clojure-dusseldorf (8)
- # clojure-gamedev (1)
- # clojure-italy (22)
- # clojure-nl (1)
- # clojure-russia (46)
- # clojure-sg (1)
- # clojure-spec (5)
- # clojure-uk (40)
- # clojurescript (30)
- # community-development (3)
- # cursive (17)
- # data-science (1)
- # datomic (18)
- # emacs (3)
- # figwheel (1)
- # fulcro (19)
- # hoplon (12)
- # jobs (5)
- # leiningen (42)
- # off-topic (12)
- # om (2)
- # onyx (41)
- # re-frame (19)
- # ring-swagger (1)
- # rum (3)
- # shadow-cljs (4)
- # specter (7)
- # unrepl (2)
- # vim (25)
- # yada (24)
I'm trying to use :npm-deps
with a library called "vexflow", but when I require
it, all I get back is an empty object. It seems the package.json refers to a source file bundled with webpack; is this a common problem?
@tstephens might be an issue until this is solved: https://github.com/google/closure-compiler/pull/2597
thanks; in the interim, do I just need to pull it in the "old fashioned" way, then?
add a :foreign-libs
entry
In the clojurescript docs, there's a retracted printf
and elsewhere there's suggestions to use goog.string
from gcl. Is that still the recommended way to go? Trying to simplify this sort of code in hiccup: (str "translate(" cell-size " " cell-size ")")
@burnsidemk why don't you wrap it in your own function?
@burnsidemk my personal choice is to use goog.string.format
here’s a blog post detailing how to require it: https://www.martinklepsch.org/posts/requiring-closure-namespaces.html
@anmonteiro that's a cool resource! I've been struggling a bit with using gcl from clojure
@channel: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks. I’m getting the following warnings in my front end application. Any suggestions to eliminate this ? I’m using rum with mixins to query.
@ingared where are you using isMounted? And what are you using it for?
I’m not using isMounted but I’m using a react-mixin with (init , did-mount, will-update, will-unMount) .
Is this mixin something you wrote or a library?
No but I started using react-material-UI Components and added [cljsjs/react “15.6.1-1”] [cljsjs/react-dom “15.6.1-1"] [cljs-http “0.1.43”]
This is one of my recent changes and my guess is that react 15.6.1-1 is throwing this warnings. Rum on the other hand is using a 15.4.20
@amonks: Thanks for the tip. Figured out this is beacuse of some of the react-material-UI components
This is a suggestion from https://github.com/madvas/cljs-react-material-ui . Don’t understand why one need to add (react and react-dom) to the dependencies ?