Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Created September 1, 2016 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdkealy/17b4e3649c646067f666aa4cff05e7f3 to your computer and use it in GitHub Desktop.
Save jdkealy/17b4e3649c646067f666aa4cff05e7f3 to your computer and use it in GitHub Desktop.
(ns im.pages.debug
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require
[im.chans :as chans]
[im.utils :as utils]
[taoensso.timbre :as timbre
:refer-macros (debug)]
[reagent.core :as reagent :refer [atom cursor]]
[cljs.core.async :refer [tap put! chan <! >! timeout close! mult]]
[im.stores.content :as content]
[im.stores.content.pills :as pillstore]
[im.stores.content.pill-editor :as pedit]))
(defn page []
(reagent/create-class
{:component-did-mount (fn []
(let [c (chan 2)]
(go
(debug "STEP1")
(.setTimeout js/window (fn []
(go
(>! c "hello"))
) 10000)
(debug "STEP2")
(<! c )
(debug "STEP3")
(close! c))))
:reagent-render (fn []
[:div "DEBUGGING OUT"])}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment