 (ns omnext-routing-one.core
+  (:require-macros
+    [cljs.core.async.macros :refer (go-loop)]
+    )
   (:require [goog.dom :as gdom]
             [om.next :as om :refer-macros [defui]]
             [om.dom :as dom]
             [clojure.string :as string]
+            [cljs.core.async :refer (<! put! chan)]
             ))
 
 (enable-console-print!)


;; Components

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

    (let [parsed-url (parse-url-hash
          js/window.location.hash
          )
          new-query (get-query-and-params-by-parsed-url
        tabs
        parsed-url
        )
          ]
      (put! routes-chan new-query)
      )
    )
  )
