This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (4)
- # aleph (1)
- # beginners (15)
- # boot (55)
- # braveandtrue (5)
- # cider (20)
- # clara (10)
- # cljs-dev (13)
- # cljsrn (8)
- # clojure (52)
- # clojure-austin (30)
- # clojure-brasil (2)
- # clojure-india (1)
- # clojure-italy (2)
- # clojure-nl (1)
- # clojure-russia (72)
- # clojure-sdn (9)
- # clojure-taiwan (2)
- # clojure-uk (45)
- # clojurebridge (3)
- # clojured (1)
- # clojurescript (46)
- # core-matrix (1)
- # cryogen (1)
- # cursive (43)
- # datascript (12)
- # datomic (57)
- # devcards (54)
- # emacs (6)
- # funcool (21)
- # hoplon (335)
- # jobs (15)
- # jobs-rus (40)
- # ldnclj (2)
- # lein-figwheel (20)
- # off-topic (59)
- # om (157)
- # onyx (29)
- # parinfer (2)
- # pedestal (26)
- # proton (9)
- # protorepl (2)
- # reagent (3)
- # ring-swagger (4)
- # spacemacs (2)
- # untangled (17)
I've been majorly cargo-culting lein, but here's my attempt to clarify things. I've been happily developing with the lein-figwheel plugin, but I need backend stuff now. So, in order to add Sente/http-kit/ring, I've specified a
project.clj which starts the http-kit server. So right now I do
lein run in one terminal to start the clojure-based server, and
lein figwheel dev in another terminal for figwheel auto-compiling-reloading magic. And it works ☺️, but I wonder if there's a way to combine the two steps into one?
You could write a function to start both the server and figwheel, then call it from the REPL.
Hi guys, I’m completely new to Clojurescript and I’m hitting a snag trying to use materializecss with it. Specifically, I want to use a select field and in the docs, I’m told I need to call this function:
I’ve tried adding this in my index.html at the bottom of the body, but the select field won’t render. Any pointers on what I’m doing wrong?
That jquery selector won’t work unless jquery is loaded on the page (it may be). Also the page is considered ready when the scripts are loaded and not necessarily when react has rendered the initial dom. The approach I usually take is to add a
:component-did-mount hook to that select and call
If I am actively working on the server I just start it from a repl and use the reloaded.repl workflow
Anyone know how to add reagent to an existing figwheel project? it's low on my list of things to do
@faisha if you add -r to the end of the command @noonian posted that will start a repl
Just published lein-figwheel 0.5.1-SNAPSHOT with the new configuration validation code in it. Lots of edge cases so I would really appreciate it if folks could give it a try.. If it runs fine you may want to fuzz your configuration and see if the errors you get make sense.
@bhauman I am just using standard html in the index and have my src file. it's got no reagant stuff anywhere in it. is it as a simple as saying: require the reagent lib, and refresh?
yep you will then need ot require it and start using it per the instructions https://github.com/reagent-project/reagent
not in my back pocket... but I suspect one could be made from the .svg pretty easily
Oh hey, @junegunn — I didn't know you used Clojure! I use
fzf all the time, great tool.
When specifying dependencies how does, say “org.omcljs/om” refer to the actual github account?
@bones they are completely unrelated.
org.omcljs/om is the
. This can be completely different from the namespaces you require:
om.core, and different again from the Github account:
In single page apps how do you deal with "not-found" situations? Do you have some hack to get a 404 or do you just not care?
the behavior can be different for a user navigating to a "not found" page vs. someone clicking a link (e.g. from Twitter) to find themselves on a "not found" page
@bostonaholic: sure, interested in all of these cases really. Also less interested in solutions than just in other peoples thoughts/experiences w/ this. Seems like a generally not-so-straightforward thing with SPAs