-
-
Save jdkealy/17b4e3649c646067f666aa4cff05e7f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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