Skip to content

Commit

Permalink
Repro #263
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed Aug 18, 2023
1 parent 5d74e1b commit 9454a3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/todomvc/src/todomvc/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@
;; place before we go onto the next step.
(dispatch-sync [:initialise-db])

;; This causes the bug not to happen:
;;(dispatch [:initialise-db])

;; -- Routes and History ------------------------------------------------------
;; Although we use the secretary library below, that's mostly a historical
;; accident. You might also consider using:
;; - https://github.com/DomKM/silk
;; - https://github.com/juxt/bidi
;; We don't have a strong opinion.
;;
(defroute "/" [] (dispatch [:set-showing :all]))
(defroute "/" [] )

(defroute #"/([a-z]+)" [filter] (dispatch [:set-showing (keyword filter)]))

Expand Down

0 comments on commit 9454a3c

Please # to comment.