This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-23
Channels
- # aws-lambda (5)
- # beginners (212)
- # boot (3)
- # cider (130)
- # cljs-dev (24)
- # clojars (2)
- # clojure (287)
- # clojure-dusseldorf (23)
- # clojure-italy (11)
- # clojure-russia (10)
- # clojure-spec (9)
- # clojure-uk (45)
- # clojurescript (59)
- # core-async (1)
- # cursive (13)
- # datascript (1)
- # datomic (46)
- # emacs (12)
- # events (9)
- # fulcro (196)
- # graphql (3)
- # hoplon (79)
- # jobs (5)
- # jobs-discuss (7)
- # jobs-rus (2)
- # keechma (26)
- # keyboards (9)
- # leiningen (2)
- # luminus (9)
- # off-topic (20)
- # om-next (1)
- # onyx (15)
- # re-frame (16)
- # reagent (18)
- # reitit (1)
- # remote-jobs (2)
- # rum (3)
- # shadow-cljs (13)
- # sql (135)
- # unrepl (46)
- # vim (1)
- # yada (23)
hello all, if I use :value @(rf/subscribe [:something])
direct into input field why it don´t update if I change the value?
@fabrao input fields are a bit tricky with reagent, can you give some more info?
We use re-com to mask over these issues, I'm sure there are other approaches as well
Not sure what the difference is sorry?
@conan: Are you starting from a template?
Ok, there's (I think) only a few places where this can go wrong (I've done them all more than once)
- You need to call your init function from your html page - `<script>app.core.main();</script>
- You need to export your main function - (defn ^:export main [])
(you've already got this I think)
- You need to include re-frame in your main app file
First thing I would check is do a js alert or println from your main function and see if it's showing up when you start your app - if it is then you can focus on what your re-frame init is supposed to be doing
Is the first point necessary? I don't call it from my HTML page, I just have a relevant :main
entry in the compiler configuration.
@conan: It's not a perfect presentation by any means, but if you're still having trouble getting the start up going you may find something useful in my talk from the 2016 conj - https://www.youtube.com/watch?v=cDzjlx6otCU - matching code is at https://github.com/smahood/re-frame-conj-2016 It should give you a pretty decent walkthrough of how to get your initialization done with decent reloading (though it's been a while so it may not be as useful as I hoped).