This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-07
Channels
- # announcements (2)
- # bangalore-clj (1)
- # beginners (88)
- # calva (1)
- # cljdoc (1)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (88)
- # clojure-berlin (2)
- # clojure-europe (2)
- # clojure-india (1)
- # clojure-spec (3)
- # clojure-uk (3)
- # clojurescript (9)
- # clojureverse-ops (4)
- # clojutre (2)
- # cursive (3)
- # data-science (1)
- # emacs (3)
- # fulcro (12)
- # pathom (4)
- # reitit (1)
- # rum (10)
- # shadow-cljs (9)
- # spacemacs (11)
- # sql (7)
- # tools-deps (16)
- # vim (14)
- # xtdb (3)
- # yada (1)
Hi, I'm having trouble using disable to disable a button element
is there an idiomatic way to disable buttons once they are clicked?
somewhere you need to store information that a button has been clicked. be it a r/atom
, rf/dispatch [:button-clicked ])
whatever. and then your disabled is based on that
there's no particular idiom at play. the disabled state is a function of your components state
Ah, Thanks
is rf/dispatch reagent?
no. the rf there is re-frame. those being the two most common (to me at least) ways to interact with react in cljs
Anyone know how to use a javascript Buffer in a shadow-cljs browser build? js/Buffer
works fine ootb for node builds but I would like to override this for global reference if possible
I have installed [feross/buffer](https://github.com/feross/bufferhttps://github.com/feross/buffer) but requiring it is quite tricky