Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. :dependencies [[org.clojure/clojure "1.9.0-alpha17"]
  2. [org.clojure/clojurescript "1.9.660"]
  3. [org.clojure/core.async "0.3.443"
  4. :exclusions [org.clojure/tools.reader]]
  5. [sablono "0.8.0"]
  6. [org.omcljs/om "1.0.0-beta1" :exclusions [cljsjs/react cljsjs/react-dom]]
  7. [cljs-react-material-ui "0.2.46"]
  8. [compassus "1.0.0-alpha3"]]
  9.  
  10. Then create:
  11.  
  12. (ns kap.core
  13. (:require [cljsjs.material-ui]
  14. [om.next :as om :include-macros true]
  15. [om.dom :as dom :include-macros true]
  16. [goog.dom :as gdom]
  17. [clojure.string :refer [join]]
  18. [cljs-react-material-ui.core :as ui]
  19. [compassus.core :as compassus]))
  20.  
  21. .....
  22.  
  23. (def routes
  24. {:routes {:totals TotalsTab}
  25. :index-route :totals})
  26.  
  27. ....
  28.  
  29. (om/defui TotalsTab
  30. Object
  31. (render [this]
  32. (println "RENDER")
  33. (ui/mui-theme-provider
  34. {:mui-theme (ui/get-mui-theme)}
  35. (dom/button nil "ABC2")))
  36.  
  37.  
  38.  
  39. Change ABC2 to something else and let figwheel reload it and the button label won't change. Then remove ui/mui-theme-provider (leaving just dom/button) and the reloading starts working again. Then try not using compassus and it will work with ui/mui-theme-provider wrapper.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement