     )
 
   Object
+  (componentDidMount [this]
+                     (go-loop [new-query (<! routes-chan)]
+                                             (println "new query"
+                                                      new-query)
+                                (om/set-query!
+                                  this
+                                  new-query
+                                  )
+
+                              (recur (<! routes-chan))
+                       )
+                     )
+
   (render [this]
           (let [unbound-query (om/query this)
                 unbound-params (om/params this)

(ns omnext-routing-one.core
  (:require [goog.dom :as gdom]
            [om.next :as om :refer-macros [defui]]
            [om.dom :as dom]
            [clojure.string :as string]
            ))

(enable-console-print!)


;; Components


(def routes-chan (chan))

(defui RootView
  static om/IQueryParams
  (params [_]
