diff --git a/examples/todomvc/src/todomvc/db.cljs b/examples/todomvc/src/todomvc/db.cljs index 548445f..153cfef 100644 --- a/examples/todomvc/src/todomvc/db.cljs +++ b/examples/todomvc/src/todomvc/db.cljs @@ -78,9 +78,10 @@ (re-frame/reg-cofx :local-store-todos (fn [cofx _] - ;; put the localstore todos into the coeffect, under key :local-store-todos - (assoc cofx :local-store-todos ;; read in todos from localstore, and process into a sorted map + ;; put the localstore todos into the coeffect under :local-store-todos + (assoc cofx :local-store-todos + ;; read in todos from localstore, and process into a sorted map (into (sorted-map) (some->> (.getItem js/localStorage ls-key) - (cljs.reader/read-string) ;; stored as an EDN map. + (cljs.reader/read-string) ;; EDN map -> map )))))