This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-15
Channels
- # beginners (16)
- # cljs-dev (12)
- # clojure (9)
- # clojure-berlin (5)
- # clojure-russia (16)
- # clojure-uk (26)
- # clojurescript (48)
- # community-development (2)
- # cursive (1)
- # data-science (10)
- # datomic (7)
- # emacs (27)
- # figwheel-main (31)
- # fulcro (6)
- # hoplon (47)
- # immutant (1)
- # jobs (1)
- # jobs-discuss (33)
- # off-topic (3)
- # onyx (34)
- # protorepl (5)
- # re-frame (26)
- # reagent (1)
- # reitit (1)
- # shadow-cljs (80)
- # spacemacs (44)
- # specter (4)
- # testing (1)
- # tools-deps (4)
Is there a library that will parse html->hiccup such that the result is 'React style', so :colSpan
rather than :colspan
, and that also handles the :style
attribute properly (for React), so that instead of {:style "width:60px;position:absolute;"}
it outputs {:style {:width "60px" :position "absolute"}}
?
For the life of me I don't understand why chrome keeps saying "Uncaught TypeError: Cannot read property 'call' of undefined" for product_type.call while at the same time showing that the product_type is a keyword and most definately not undefined
Ah. Two functions with same name... Then it's really weird why the debugger kept showing that the values would exist
I am new to re-frame and not quite sure how to build a user authentication/authorization system with it. From what I gathered I should create an auth interceptor
and place my auth logic inside :before
section then inject the interceptor into every events reg-event-db
and reg-event-fx
that I want to protect. Am I on the right track?
@somedude314 Sounds right, but I am learning #re-frame too. You might want to try that channel.
I'm playing around with a simple project with only deps.edn and I'm not sure how to hook up figwheel to work with a custom ring handler. Do I still need to use figwheel-sidecar? How do I compile Clojurescript now? Do you still need to use cljs.build.api
? Which figwheel should I use?. It seems Bruce started rewriting figwheel to work with deps.edn (figwheel-main). Does anyone have an example project?
Bruce's own flappy-bird-demo is too simple, doesn't show how to tweak various fighweel and cljs compiler options
but I did notice he wrote some notes about embedding in your server here: https://github.com/bhauman/figwheel-repl
oh wow... that's another thing I have never seen. Cljs landscape at the moment seems to be... very confusing
Yeah, a bunch of tooling work got funded and so there's been a lot of churn in that space
This is awesome! I guess (as usual) I'll pick, try and choose things... shouldn't be too hard (I hope)
Ideally it'll be less hard than the first time 😉 but I'm not sure if all of the pieces are in place yet to go pure clj/cljs.main. Should definitely be there sometime in 2018, I'd think.
so this is what my ideal setup would be: - deps.edn (no lein, no boot) - figwheel (must have, there's no question) - integrant (I can't imagine getting reloaded workflow without it)
I may recall david nolen talking about embedding a cljs repl in a server - not sure if it was figwheel - some time ago, and he does have a new class coming up in NYC on new tooling workflows, I believe
eh, not sure if it has a figwheel server endpoint in there yet, but you might be able to get one in there using figwheel.repl
"The syntax for defmulti has changed. Example: (defmulti name dispatch-fn :default dispatch-value)"
@didibus That was probably changed long long ago. The syntax for defmulti
is the same in ClojureScript as it is in Clojure. You probably just used some form that triggered that diagnostic.
That diagnostic will trigger if it thinks you have passed in more than one option. (The only options supported are :default
and :hierarchy
.)
hum, ya, I'm probably just having a brain fart, I really thought the syntax used to be (defmulti name args-vector dispatch-fn)
You can pass a dispatch-fn that has multiple arities (fn ([x] x) ([x y] y))
. You just need to make sure that you don't dispatch to any of your methods with an arity that they don't understand.
Any reason *main-cli-fn*
doesn't have a default value? Would have been nice to default to -main
for example.
@didibus If it were to default to -main
, which one would it default to? (In other words *main-cli-fn*
needs to be set to a function value, but it is up to you to set it to foo.core/-main
, bar.core/-main
, or any other function like baz.core/quux
.)