Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created June 12, 2017 13:14
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 borkdude/177148ef9d57cb144e26bf2f16e4c7da to your computer and use it in GitHub Desktop.
Save borkdude/177148ef9d57cb144e26bf2f16e4c7da to your computer and use it in GitHub Desktop.
(defn report [loading?]
(r/create-class
{:reagent-render (fn [loading?]
[:div.report-container
(when true #_loading?
[:div.widget
[:div.widget-body
"Preparing report preview "
[:div.fa.fa-spinner.fa-spin]]])
[report-iframe loading?]])
:component-did-mount (fn [] (debug "report mounted"
;; this is now logged once, so far so good
))})
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment