 
 ;; usage:  (dispatch [:set-showing  :active])
 ;; This event is dispatched when the user clicks on the various
-;; filter buttons at the bottom of the panel. All, showing, done.
+;; filter buttons at the bottom of the panel. All, active or done.
 (reg-event-db      ;; part of the re-frame API
   :set-showing     ;; event-id
   [check-spec-interceptor]

;; Advanced topic:  we inject the todos currently stored in LocalStore
;; into the first, coeffect parameter via `(inject-cofx :local-store-todos)`
;; To fully understand how that works, you'll have to review the tutorials.
;; But, if you are interested, look at the bottom of `db.cljs` to see how this is done.
;;
(reg-event-fx                     ;; part of the re-frame API
  :initialise-db                  ;; event id being handled

    (assoc db :showing new-filter-kw)))

;; NOTE: here is a rewrite of the event handler above using `path` or `trimv`
;; These interceptors can be interesting and useful, but they are an advanced topic.
;; It will be illuminating to compare the version below with the one above. 
#_(reg-event-db
  :set-showing                    ;; event-id

