This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-05
Channels
- # bangalore-clj (1)
- # beginners (50)
- # boot (72)
- # cider (53)
- # cljs-dev (303)
- # cljsrn (2)
- # clojure (403)
- # clojure-conj (3)
- # clojure-dev (7)
- # clojure-italy (18)
- # clojure-russia (129)
- # clojure-sg (1)
- # clojure-spec (44)
- # clojure-uk (25)
- # clojurescript (112)
- # core-async (4)
- # core-typed (3)
- # cursive (23)
- # datomic (114)
- # defnpodcast (1)
- # emacs (1)
- # figwheel (2)
- # graphql (18)
- # hoplon (110)
- # instaparse (6)
- # jobs (3)
- # jobs-discuss (10)
- # leiningen (5)
- # luminus (1)
- # lumo (151)
- # off-topic (22)
- # om (3)
- # om-next (3)
- # onyx (4)
- # parinfer (1)
- # pedestal (8)
- # precept (51)
- # re-frame (19)
- # reagent (3)
- # ring (1)
- # ring-swagger (5)
- # spacemacs (21)
- # sql (25)
- # test-check (2)
- # uncomplicate (8)
- # unrepl (33)
- # untangled (20)
- # yada (14)
@akiroz You said to leontalbot to use npm-deps, I tried with react-data-grid, but require is not recognize it. What I´m missing?
Refs: https://anmonteiro.com/2017/03/requiring-node-js-modules-from-clojurescript-namespaces/
@akiroz It seems that cljs compiler can´t create npm process. The error is java.io.IOException: Cannot run program "npm": CreateProcess error=2
, I think it´s because I´m running in Windows
I'm seeing some weird behavior with component updating and subscriptions that I'm not sure I understand what the correct behavior is supposed to be
I have a table, and a subscription visible-rows
that contains a sequence of items that get rendered like so: (for [row @visible-rows] [:div.row {:key (:id row)} [item-row row]])
the item-rows
component has its own subscriptions, let's say to visible-columns
, so it looks kinda like this:
you may want to wrap the for
with doall
I prototyped that out and it works, but I thought that if the arguments to a component changed it was supposed to re-render
oh, you need to do
(defn item-rows [row]
(let [....]
(fn [row]
.....
you only need to shadow arguments that can change