This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-15
Channels
- # aws-lambda (3)
- # beginners (37)
- # boot (294)
- # carry (1)
- # cider (38)
- # cljs-dev (37)
- # cljsjs (88)
- # clojure (187)
- # clojure-android (2)
- # clojure-austin (1)
- # clojure-dusseldorf (9)
- # clojure-hk (3)
- # clojure-italy (12)
- # clojure-russia (36)
- # clojure-spec (55)
- # clojure-uk (27)
- # clojurescript (75)
- # community-development (5)
- # conf-proposals (2)
- # copenhagen-clojurians (3)
- # cursive (9)
- # datomic (54)
- # devcards (5)
- # devops (3)
- # dirac (69)
- # emacs (6)
- # ethereum (1)
- # euroclojure (1)
- # events (3)
- # funcool (1)
- # hoplon (20)
- # immutant (4)
- # luminus (14)
- # midje (4)
- # om (178)
- # om-next (2)
- # onyx (47)
- # pedestal (19)
- # protorepl (20)
- # re-frame (14)
- # reagent (54)
- # ring (2)
- # ring-swagger (7)
- # test-check (10)
- # uncomplicate (11)
- # untangled (9)
- # yada (9)
ANN: thanks to @blak3mill3r re-com now has a nice typeahead component. A demo is available: http://re-demo.s3-website-ap-southeast-2.amazonaws.com/#/typeahead
ANN: Reagent 0.6.0 is released (includes React 15.2.1)
@reefersleep managed to get it working, thanks for your help yesterday!
@gamecubate decided to change it so that I serve a static html and app.js along with it. Had some issues with my VPS and my JAR instance crashed after few hours.
Anyone tried https://github.com/RyanMcG/lein-npm for importing 3rd party React components?
Or would this be better? http://blob.tomerweller.com/reagent-import-react-components-from-npm
have you tried cljsjs @artur ?
cool, just wanted to check
looks like it doesn't have any dependencies
maybe you can just download it and include it as a standalone js?
@artur you could also look into how other react deps are packaged on cljsjs
https://github.com/cljsjs/packages/tree/4b9b9e72ced11d427a27659effa55b7c45c5b049/react-highlight
probably doable to include it like this
this example just shells out to npm
and webpack in build.boot
@artur great! 🙂
but agree that a pure clojurescript solution is peferable
that would also help, no?
would be cool to build a npm2cljsjs
tool
@martinklepsch That one might return e.g "2 hours 15 minutes ago" instead of just "2 hours ago" and it is not configurable
We're having some trouble with our reagent application. I'm not sure it has anything specific to do with reagent, though. There are a couple of on-click events in the UI that take a very long time to complete. When I view the Network tab in developer tools in Chrome, one of the resulting requests appear to be "Pending" for many seconds, locking up the UI. But, when it finally finishes, the logged time is in miliseconds! Have anyone encountered anything similar?
@juhoteperi I see 👍
that basically imports an npm dep into cljsjs
@pesterhazy No need, this all will be fixed in future by ClojureScript compiler
will it?
Module processing will allow ClojureScript to consume npm etc. modules directly
ES6 modules for Google Closure?
sounds awesome
Should be no need for externs with module processing
And extern inference will drop need for externs with regular foreign deps
can't wait
leftPad comes to clojurescript!
Yeah well, my suggestion would be to use JS libs only for stuff size of Leaflet etc. and write everything else on Cljs
But maybe I will change my mind when module processing etc. is implemented
we're using npm modules heavily with react-native
We can probably completely automate packaging certain libs from npm to clojars for easy consumption
integrating that with Google Closure would be fantastic
Unfortunately React-native has it's own packager and for now it is probably not possible to use Closure there
I know
but maybe that can be changed
Would probably need changes on React-native side
yeah as there are native modules as well
@juhoteperi: thanks for the code but isn't that like re-inventing the wheel kind of?
@artur I don't see that as a problem when the solution is only ~30 lines, is unlikely to change (can be added to lib shared between projects) and alternative would be to use JS lib which requires complex build steps (in cljsjs or project) and which loses any benefits of Closure optimization
My code uses static interval to update the value, but even making the interval dynamic based on the current duration would only add a few lines
I finalized the timeago component to my native Reagent components lib: http://metosin.github.io/komponentit/#!/example.timeago