This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-17
Channels
- # alda (5)
- # bangalore-clj (1)
- # beginners (9)
- # bigdata (1)
- # boot (51)
- # carry (1)
- # cider (9)
- # cljs-dev (22)
- # clojars (39)
- # clojure (118)
- # clojure-brasil (1)
- # clojure-czech (8)
- # clojure-france (2)
- # clojure-italy (5)
- # clojure-korea (9)
- # clojure-russia (9)
- # clojure-spec (17)
- # clojure-uk (42)
- # clojurescript (48)
- # core-async (1)
- # emacs (3)
- # figwheel (1)
- # funcool (3)
- # hoplon (39)
- # klipse (51)
- # lein-figwheel (4)
- # leiningen (2)
- # luminus (5)
- # off-topic (245)
- # om (18)
- # onyx (19)
- # parinfer (1)
- # pedestal (18)
- # re-frame (47)
- # reagent (19)
- # ring-swagger (1)
- # specter (18)
- # untangled (93)
- # vim (8)
- # yada (56)
New version of re-com. We called it v1.0.0 It has one annoying backwards-incompatible change (sorry): https://github.com/Day8/re-com/releases
hi, what’s the best way to get a reference to component in other component’s event handler? is it possible with reagent?
are there ways to work with react context in reagent?
grep’ed the src, but seems there’re no such feature
talking about this: https://facebook.github.io/react/docs/context.html
hi - i’m sure i’m doing something simple wrong here. making a slider for the first time, here’s my code:
(defn slider [an-atom min max]
(js/console.log "slider" @an-atom)
[:input {:type "range" :value @an-atom :min min :max max
:style {:width "100%"}
:on-change (fn [e]
(reset! an-atom (js/parseInt (.-target.value e))))}])
; invocation
[slider grid-width 25 35]
the behavior i’m seeing is: the slider’s displayed position never changes, but clicking/dragging on it successfully changes the value of its input atom. i’d like the slider’s position to reflect the current value of its atom - what am i doing wrong?i don’t see my console.log called when the slider is manipulated, which seems like a warning sign
ah, its parent component doesn’t have grid-width
passed to it, so i bet reagent never sees it as an input atom <— this was irrelevant, pretend i never said this
http://jrheard.com/voke/generation.html is what i was poking at
learning how to generate random levels in roguelikes, built a little tool to help me understand what the algorithms are actually doing