This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-03
Channels
- # arachne (31)
- # aws (9)
- # bangalore-clj (7)
- # beginners (46)
- # boot (18)
- # cider (21)
- # cljs-dev (8)
- # clojure (154)
- # clojure-dusseldorf (5)
- # clojure-filipino (3)
- # clojure-ireland (4)
- # clojure-italy (9)
- # clojure-russia (6)
- # clojure-spec (6)
- # clojure-uk (52)
- # clojureremote (3)
- # clojurescript (173)
- # clojurewest (14)
- # cursive (24)
- # data-science (2)
- # datomic (18)
- # defnpodcast (1)
- # devcards (1)
- # hoplon (4)
- # instaparse (29)
- # jobs (2)
- # juxt (1)
- # leiningen (3)
- # lumo (78)
- # off-topic (46)
- # om (9)
- # onyx (42)
- # pedestal (33)
- # perun (3)
- # re-frame (9)
- # reagent (6)
- # slack-help (5)
- # spacemacs (2)
- # specter (6)
- # unrepl (157)
- # untangled (99)
- # yada (32)
But i really dont understand why not (defn component [db] [:div @(subscribe db [:sub])])
And you still can make purely functional components, if you want. For example I have some input components, that only have a local atom, and do a dispatch when certain conditions are met.
Is there a way to access, from within a re-frame view function, the corresponding DOM element? I mean, other than through event handlers like onClick? I'm trying to have a view react to a state change by scrolling itself into position, perhaps with scrollIntoView
. Can't tell if I'm trying to invent an antipattern or just missing something obvious...
@fahey Does this help? https://presumably.de/reagent-mysteries-part-3-manipulating-the-dom.html