Skip to content

clojure.browser.repl breaks the browser's hashchange event #36

@haywoood

Description

@haywoood

Here is the relevant code:

(def history (History.))

(events/listen history EventType/NAVIGATE
  (fn [e] (.log js/console "Route changed!")))

(.setEnabled history true)

With clojure.browser.repl required, this callback does not fire, but when I comment it out, all works swimmingly.

I have no idea why it would conflict with the hashchange event. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions