This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-04
Channels
- # arachne (2)
- # bangalore-clj (3)
- # beginners (34)
- # boot (22)
- # cider (1)
- # cljs-dev (86)
- # cljsjs (3)
- # clojure (42)
- # clojure-argentina (6)
- # clojure-austin (10)
- # clojure-chicago (1)
- # clojure-france (3)
- # clojure-russia (135)
- # clojure-spain (1)
- # clojure-uk (4)
- # clojurescript (69)
- # core-async (13)
- # cursive (11)
- # datascript (6)
- # datomic (8)
- # dirac (2)
- # emacs (10)
- # euroclojure (1)
- # events (1)
- # gsoc (13)
- # jobs-rus (9)
- # lumo (7)
- # off-topic (18)
- # om (16)
- # perun (3)
- # planck (1)
- # portland-or (1)
- # re-frame (25)
- # ring (22)
- # spacemacs (1)
- # untangled (14)
When using cljsjs/react-with-addons, should I also skip including react-dom? react-dom seems to depend on react.
@qqq you need to enable remote debugging as well, it is in the doc
@richiardiandrea : I'm on step 3 now, where I need to use nrepl-middleware dirac.nrepl/middleware
if you use boot, check powerlaces/boot-cljs-devtools
you can safely try 0.1.3-SNAPSHOT
which has one task for enabling cljs-devtool
and one for enabling dirac
yeah it is newer
@qqq that creates a js object
"Clojurescript Interop" is a good search term to find out more
@olivergeorge : that looks relaly helpful; thanks!
so, what editor/setup would you suggest for those situations when you need to use ssh to edit files?
@ashnur I like sshfs also, because it works at the OS level, and it allows all the unix tool chain to be used on remote files. That's more useful than a solution that's specific to a single editor.
@ashnur: tramp on emacs can (i haven't tried myself) use putty or openssh
When I modify the implementation of layout/pages here https://github.com/dashmantech/reagent-toolbox-playground/blob/wip/src/cljs/reagent_toolbox_playground/components/autocomplete.cljs, the file gets reloaded, but the page doesn't get updated by figwheel. It looks like the version of the method being executed is the previous one.
If I define the same method in layout, here https://github.com/dashmantech/reagent-toolbox-playground/blob/wip/src/cljs/reagent_toolbox_playground/layout.cljs, it works.
@emccue - i don’t think we have enough information to understand that question, unless i’m missing something
emccue: are you doing dispatching on the client? as in, is that an single page application?
My solution generally is to run the server locally as well, as in, I don't use figwheel to server index.html.
You can create a ring handler, maybe using compojure, that will server your app no matter what URL gets hit. Then, in figwheel, you can set :ring-handler.
Compojure will help you create a ring handler, that is, a web app that responds to http requests.
But yeah... figwheel could support this out of the box, so, it's probably worth it exploring it more.
Is there a function that would output Clojure code formatted? I need to display some code in a web site.
https://github.com/kkinnear/zprint is also something to look at
cljfmt reformats existing code to make it adhere to Clojure styling, while zprint formats code from scratch