We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using [org.clojure/clojurescript "0.0-2280"] the following works in [secretary "1.1.1"] but not in [secretary "1.2.0"]
(def history (Html5History.)) (.setUseFragment history false) (defroute "test" [] (log "TEST") (set-html! (js/document.getElementById "main-container") "TEST")) (events/listen history EventType.NAVIGATE (fn [e] (secretary/dispatch! (.-token e)))) (.setEnabled history true)
The text was updated successfully, but these errors were encountered:
@martinskou Hey, I'm not seeing the call to dispatch!? You'll likely want something along the lines of:
dispatch!
(let [h (js/goog.history.Html5History.)] (events/listen h EventType.NAVIGATE #(secretary/dispatch! (.-token %))) (doto h (.setUseFragment false) (.setPathPrefix "") (.setEnabled true)))
Sorry, something went wrong.
I have updated the original issue, seems some code was missing.
@martinskou hmm, this is working for me. do you have a failing example somewhere i could poke at?
@martinskou did you get this resolved? anything i can help with?
No branches or pull requests
Using [org.clojure/clojurescript "0.0-2280"] the following works in [secretary "1.1.1"] but not in [secretary "1.2.0"]
The text was updated successfully, but these errors were encountered: