This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-19
Channels
- # beginners (134)
- # boot (4)
- # cider (23)
- # clara (2)
- # cljs-dev (2)
- # cljsrn (4)
- # clojure (147)
- # clojure-austin (9)
- # clojure-berlin (2)
- # clojure-dusseldorf (2)
- # clojure-france (2)
- # clojure-italy (11)
- # clojure-russia (1)
- # clojure-spec (18)
- # clojure-uk (182)
- # clojurescript (40)
- # community-development (5)
- # cursive (29)
- # datascript (6)
- # datomic (18)
- # duct (6)
- # emacs (4)
- # events (1)
- # fulcro (46)
- # hoplon (5)
- # jobs-discuss (12)
- # keechma (1)
- # luminus (7)
- # lumo (1)
- # off-topic (11)
- # onyx (9)
- # parinfer (5)
- # protorepl (1)
- # re-frame (18)
- # reagent (23)
- # reitit (2)
- # ring (5)
- # ring-swagger (20)
- # schema (1)
- # shadow-cljs (32)
- # spacemacs (1)
- # specter (2)
- # vim (26)
Can someone tell me why this doesn’t work? I’m trying to show all of my state on screen. https://gist.github.com/anonymous/c3e591259303ade8efa0e1bef284f7f7
I just created a new project using the re-frame template and included cljsjs/semantic-ui-react "0.77.2-0"
- this results in the following errors when trying to require cljsjs.semantic-ui-react
: Uncaught TypeError: Cannot read property 'ReactComponentTreeHook' of undefined
and Uncaught Error: js/ReactDOM is missing
- any idea as to what is wrong and how I can fix it?
Ah, problem resolved. Excluding react
and react-dom
from the cljsjs/semantic-ui-react "0.77.2-0"
dependency like this [cljsjs/semantic-ui-react "0.77.2-0" :exclusions [cljsjs/react cljsjs/react-dom]]
did the trick.
Yo channel. Anyone have any experience using a graphics rendering system like three.js with re-frame? I’m driving scene updates in a three.js project with reagent/track
ed re-frame subs and my re-trace is going to 💥. Would be really interested to hear if anyone has any thoughts or strategies
Aloha. If I want to update a value on a certain index of a vector in reg-event-db … how would i do it? So this is what I have, which doesn’t work
(reg-event-db
:set-my-vector
(fn [db [_ new_value index]]
(assoc db :my-vector-in-db index new_value)))
I believe you want assoc-in
(assoc-in db [:my-vector :in-db index] new-value)
Just dummy data, sorry
I believe so, not sure about assoc’ing vectors now that I think about it
ok, checked the docs that should work
When applied to a vector, returns a new vector that
contains val at index. Note - index must be <= (count vector).