   "Returns the application's root class."
   [app]
   (-> app :config :root-class))
+
+(defn- unwrap-route [route]
+  (cond-> route
+    (util/unique-ident? route) first))
 
 (defn- make-root-class
   [{:keys [routes wrapper]}]

(defmethod read [nil ::route-data]
  [{:keys [state user-parser] :as env} key params]
  (let [st @state
        route (get st ::route)
        route (cond-> route
                (util/unique-ident? route) first)
        query (infer-query env route)
        ret (user-parser env query)]
    {:value (get ret route)}))

      Object
      (render [this]
        (let [props (om/props this)
              route (unwrap-route (::route props))
              route-data (::route-data props)
              factory (get route->factory route)]
          (if wrapper
