This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-01
Channels
- # aleph (1)
- # bangalore-clj (5)
- # beginners (24)
- # boot (113)
- # cider (42)
- # cljs-dev (2)
- # cljsjs (2)
- # cljsrn (3)
- # clojure (37)
- # clojure-austin (4)
- # clojure-brasil (3)
- # clojure-france (55)
- # clojure-greece (15)
- # clojure-ireland (4)
- # clojure-italy (13)
- # clojure-russia (37)
- # clojure-spec (50)
- # clojure-uk (31)
- # clojurescript (49)
- # component (12)
- # consulting (1)
- # cursive (6)
- # datascript (9)
- # datomic (27)
- # editors (2)
- # garden (1)
- # hoplon (18)
- # jobs (1)
- # klipse (25)
- # lein-figwheel (1)
- # leiningen (1)
- # luminus (2)
- # om (53)
- # om-next (8)
- # onyx (5)
- # parinfer (4)
- # perun (4)
- # re-frame (13)
- # remote-jobs (1)
- # ring (1)
- # ring-swagger (3)
- # rum (52)
- # spacemacs (36)
- # specter (13)
- # sql (3)
- # untangled (49)
- # vim (11)
- # yada (9)
Are there any tutorial how to convert and use react/js lib? Like starting from github - https://github.com/mosch/react-avatar-editor - How to compile it using webpack? - Add to deps.cljs - require and use in clojurescript namespace
Can’t figure out how to stitch it together. Don’t know much of webpack/npm/babel things.
Has someone an example were spec instrumentation works? For me it works if I call a function from the cljs repl but not inside my app.
it’s possible it doesn’t work - I only tested at the REPL because that’s the primary use case
@dnolen: About that issue I raised yesterday about ISeqable and NodeList. I cannot reproduce anything within a Node REPL environment. I have only seen it manifest itself on Dom Collections such as NodeList, HTMLCollection. Shall I create an Issue for these specifically.
@keeds needs more information first. @anmonteiro reported differently
Ok, thx. I will explore more when I have time, but I'm not sure how well I can isolate given my knowledge.
@anmonteiro I just tried master and I cannot reproduce
@dnolen yeah works for me too
my snippet yesterday was probably flawed
@keeds you probably weren’t following my conversation with @anmonteiro but the thing to try is (satisfies? ISeqable x)
on instances of these types
@keeds if that works then there’s something wrong with your code and the fact that it was working before might have just been you getting lucky
This may be off topic, but is there a way to force cljs-devtools to print maps such that their key/value pairs are on new lines?
when using bootstrap dropdowns, like in this example, together with React, do you have to call something on did-mount to make the dropdown work? http://getbootstrap.com/components/#input-groups-buttons-dropdowns
if so then you should be able to do something like this in reagent:
[:div.dropdown
[:button.dropdown-toggle {:data-toggle "dropdown"}]
[:ul.dropdown-menu
[:li [:a "Item 1"]]
[:li [:a "Item 2"]]]]
I am sorry for the silly question, but I don’t understand why I cannot pull :id
from popup
object.
popup
is a (let [popup (<! (chrome.windows.create #js {[params]}))])
@thomas.williams that’s a JS object, that’s just how it prints
I already tried (aget popup “id”)
and (.-id popup)
. Also tried with (:id popup)
oh, that would explain things... I should get [popup window-id] as a result of the create method
@dnolen I think you saved my day... I was away from cljs for a month and got rusty
@tomas.casas these days you can more or less trust the tooling - your answer was in that image 🙂
that is what I mean, I was comfortable several weeks ago with explaining/realizing unexpected returned values from console
thanks a lot!
A newbie question on Om/Om.next and other React-based approaches: we are looking at using Om for an upcoming project, but a number of team members are wary of moving away from native react. If we use Om, would the Om generated JS be human-friendly and enable us to have the ability to switch to native react, if needed?
@habanerao not really, reusing the generated JS is non-goal
how would this be notated in cljs navigator.mimeTypes['application/x-nacl'] !== undefined.
?
nvm found it: (aget (.-mimeTypes js/navigator) "application/x-nacl")
@hlolli aget
is only for arrays
you should use goog.object/get