             [fulcro.client.core :as fc]))
 
 (defui ^:once ItemAdder
+  static om/IQuery
+  (query [this] [:item-adder/input-value])
   static
   fc/InitialAppState
   (initial-state [c params] {:item-adder/input-value ""})

(def ui-item-list (om/factory ItemList))

(defui ^:once App
  static
  fc/InitialAppState
  (initial-state [c params] {:app/item-adder (fc/get-initial-state ItemAdder {})
                             :app/item-list (fc/get-initial-state ItemList {})})

  Object
  (render [this]
          (let [{:keys [ui/react-key]} (om/props this)
                {:keys [app/item-adder app/item-list]} (fc/get-initial-state App {})]
            (dom/div
             #js {:key react-key
                  :className "app"}

(def ui-item-adder (om/factory ItemAdder))

(defui ^:once Item
  static om/IQuery
  (query [this] [:item/added-at :item/text :item/checked?])
  static
  fc/InitialAppState
  (initial-state [c {:keys [added-at text]}] {:item/added-at added-at
