Folcon wrote: > > I'm trying out Clojurescript one, but whenever I refresh the page the init > event appears to fire so I lose the current state I'm in. > > How can I set it so that the init event only resets my state if I don't > have any? (I'm intending to have an explicit reset event.) >
That's the nature of the web. A page refresh in a browser clears all client-side, transient state. You can restore state out of persistent state stores (cookies on the client side, or session on the server side), or you can also pass state elements through the HTTP request-response workflow. All that said, if your intention was to try your code changes while you were developing, I strongly encourage you to watch this very nice screencast [1] and read that wiki page [2]. [1] http://vimeo.com/35153207 [2] https://github.com/brentonashworth/one/wiki/Development Also, the rest of the wiki is very interesting [3]. [3] https://github.com/brentonashworth/one/wiki -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en