 
 (defui ^:once ItemList
   static om/IQuery
-  (query [this] [:item-list/sort-by-desc-added-at {:item-list/items (om/get-query Item)}])
-  static
-  fc/InitialAppState
-  (initial-state [c params] {:item-list/sort-by-desc-added-at true
-                             :item-list/items [(fc/get-initial-state Item {:added-at 1508175827181
-                                                                           :text "hello"
-                                                                           :checked? false})
-                                               (fc/get-initial-state Item {:added-at 1508175970713
-                                                                           :text "world"
-                                                                           :checked? true})]})
+  (query [this] [{:item-list/items (om/get-query Item)}])
+  static fc/InitialAppState
+  (initial-state [c params] {:item-list/items [(fc/get-initial-state Item {:id 1
+                                                                           :added-at 1508175827181
+                                                                           :text "hello"})
+                                               (fc/get-initial-state Item {:id 2
+                                                                           :added-at 1508175970713
+                                                                           :text "world"})]})
   Object
   (render [this]
-          (let [{:keys [item-list/items]} (om/props this)]
+          (let [{:keys [item-list/items]} (om/props his)]
             (if (empty? items)
               (dom/div
                #js {:className "item-list"}

(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
                                              :item/text text
                                              :item/checked? false})
  Object
  (render [this]
          (let [{:keys [item/added-at item/text item/checked?]} (om/props this)]

  (query [this] [:ui/react-key
                 {:item-adder (om/get-query ItemAdder)}
                 {:item-list (om/get-query ItemList)}])
  static fc/InitialAppState
  (initial-state [c params] {:item-adder (fc/get-initial-state ItemAdder {})
                             :item-list (fc/get-initial-state ItemList {})})

