     ;;   #js {"Content-Type" "application/transit+json"})
     ))
 
+(defn sente-post []
+  (fn [{:keys [remote] :as env} cb]
+    (do
+      (log "Env > ")
+      (log env)
+      (log (str "Sent to Tango Backend => " remote))
+      (chsk-send! [:event-manager/query [[:competition/name :competition/location]]]))))
+
 (def reconciler
   (om/reconciler
     {:state conn
-     ;:remotes [:remote]
+     :remotes [:remote]
      :parser (om/parser {:read read :mutate mutate})
-     ;:send (transit-post "x") ;(fn [x y] (log (str "Sending to server: x" x " y: " y)))
+     :send (sente-post) ;(fn [x y] (log (str "Sending to server: x" x " y: " y)))
      }))
 
 ;; (om/add-root! reconciler

  (do
    (log (apply str (map :competition/name d)))
    ;(d/transact! (d/db conn) )
    ))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

         (dom/th nil "Namn")
         (dom/th nil "Plats")))
       (apply dom/tbody nil (map competition competitions))
      
       )
      (dom/button
       #js {:onClick
            (fn [e]
              (test-query-click this)
                                        ;(chsk-send! [:event-manager/query [[:competition/name :competition/location]]])
               )}
        "Query")
      )
    
     )))



(defn transit-post [url]
  (fn [{:keys [remote]} cb]
    (do
      (log "Post")
      (log (str "Remote " remote))
      (cb {}))
    ;; (.send XhrIo url
    ;;   (fn [e]
    ;;     (this-as this
