This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-11
Channels
- # announcements (1)
- # aws (2)
- # beginners (140)
- # boot (67)
- # cider (50)
- # clojure (64)
- # clojure-berlin (1)
- # clojure-conj (1)
- # clojure-france (2)
- # clojure-italy (2)
- # clojure-nl (8)
- # clojure-norway (6)
- # clojure-seattle (1)
- # clojure-spec (81)
- # clojure-sweden (2)
- # clojure-uk (131)
- # clojurescript (147)
- # clojutre (7)
- # cursive (40)
- # datomic (34)
- # editors (5)
- # emacs (7)
- # events (9)
- # figwheel (18)
- # figwheel-main (1)
- # fulcro (2)
- # instaparse (1)
- # jobs (3)
- # leiningen (1)
- # luminus (10)
- # lumo (1)
- # mount (6)
- # off-topic (12)
- # pedestal (4)
- # portkey (7)
- # re-frame (8)
- # reagent (21)
- # reitit (10)
- # ring-swagger (5)
- # shadow-cljs (140)
- # specter (4)
- # tools-deps (53)
- # uncomplicate (1)
For stateful rendering functions that could get quite large with handlers and such, what is the recommended course of action to keep them manageable
anyone know good examples of creating a react component from reagent? trying to create a reusable react component in cljs and publish to private npm repo
@ghiden Perhaps http://reagent-project.github.io/docs/master/reagent.core.html#var-reactify-component helps?
in particular https://github.com/pesterhazy/cljs-spa-example/blob/master/src/cljs_spa/page/home.cljs for using react-select
and https://github.com/pesterhazy/cljs-spa-example/blob/master/src/cljs_spa/router.cljs#L47 for more complex Form-3 logic
Hi, I'm running into a bit of a problem regarding the subscription cache ratoms, and hoping I can get some clarification!
I'm getting the ratoms from: @re-frame.subs/query-reaction
which returns a map of subscriptions and Reaction objects. I'm then trying to monitor the number of watchers on a subscription reaction, and I can get the watchers to increment when the component displaying the data "unmounts", the watchers persistent - the number of them doesn't ever go back to 0, unless I reload the page.
Should (.-watches <#some reaction>)
return a live count of watchers (i.e. should they be incrementing and decrementing) or am I misinterpreting how the watchers work?
My flow:
(def reaction (get @re-frame.subs/query->reaction [[:some-key] []])))
(.-watches reaction) ;; returns the list of watchers - the problem is here, I would have thought the list of watchers would shrink when the data is no used by a component in the DOM
@reaction ;; returns the current value.
@trailcapital you might try in #re-frame as your question is really about that rather than reagent
Hey reagent folks, are we supposed to be wrapping all of our dynamic lazy lists in doall
? (https://github.com/reagent-project/reagent/issues/91)