I remember I had similar issues before and I believe the problem ended up being in the wrong namespace, or something like that.
I can't test this myself right now, so can't check exactly what it is I had to do, but try switching to the namespace where the var you want to modify is before accessing it. Also, if you change data from within the browser, are you able to see it from the REPL? (ie can you go in the reverse direction of what you tried so far) On Sat, 16 May 2015 at 17:26 Matthew Phillips <[email protected]> wrote: > Good idea, that does what I would expect. So it's my usage that is > incorrect. > > > On Sat, May 16, 2015, at 12:25 PM, Colin Yates wrote: > > Remove reagent from the equation, what happens if you type (js/alert "hi")? > On 16 May 2015 17:15, "Matthew Phillips" <[email protected]> > wrote: > > I'm using the reagent lein template: > https://github.com/reagent-project/reagent-template > > Running "lein do clean, figwheel" starts figwheel and a repl. Cool! I > can update code and it automatically refreshes in the browser. Awesome! > > But what I don't understand is how to do things in the repl and have > that reflect in the browser. So I type something like: > > (reagent.session/put! my-app.core/current-page #'my-app.core/about-page) > > Expecting that to change the current page, but it does not. In the repl > it spits out the compiled javascript but no change in the browser. > > Any help on what I'm doing wrong here? > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > > > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
