This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-24
Channels
- # beginners (19)
- # boot (118)
- # capetown (4)
- # cider (37)
- # cljs-dev (69)
- # cljsjs (23)
- # clojure (212)
- # clojure-austin (10)
- # clojure-india (3)
- # clojure-italy (2)
- # clojure-mke (1)
- # clojure-nl (1)
- # clojure-russia (5)
- # clojure-spec (52)
- # clojure-uk (86)
- # clojurescript (31)
- # core-async (9)
- # cursive (123)
- # datomic (91)
- # emacs (22)
- # events (3)
- # hoplon (68)
- # klipse (4)
- # lambdaisland (10)
- # leiningen (2)
- # off-topic (14)
- # om (14)
- # onyx (44)
- # perun (14)
- # proton (20)
- # re-frame (15)
- # reagent (10)
- # ring-swagger (9)
- # specter (18)
- # untangled (3)
- # vim (26)
- # yada (4)
Hiya there! I haven’t found documentation for make-reaction
optional parameters auto-run
on-set
and on-dispose
, could you elaborate on them or tell me where I could find so? Thanks in advance!
@metametadata so how do I go about creating a local state for the component so that I could do what I am trying to do now?
I have tried to to make an anonymous function in the component but then it doesn't even render the component whatever is inside the anonymous function.
@pesterhazy thank you 🙂
@artur you were on a right path - you need a Form-2 component to store the local state in it: https://github.com/Day8/re-frame/wiki/Creating-Reagent-Components#form-2--a-function-returning-a-function
If I have a link on my page that triggers a function, is there a way to force browse to go to top of the page?
Thanks @gadfly361 😉
What might be correct way to serve reagent app on index.html with routing? Currently I am having this problem where main page has an intro text and a link that directs to /room and this is catched by reagent app. But when I enter the url directly on the browser with /room it gives me 404.