Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :dependencies [[org.clojure/clojure "1.9.0-alpha17"]
- [org.clojure/clojurescript "1.9.660"]
- [org.clojure/core.async "0.3.443"
- :exclusions [org.clojure/tools.reader]]
- [sablono "0.8.0"]
- [org.omcljs/om "1.0.0-beta1" :exclusions [cljsjs/react cljsjs/react-dom]]
- [cljs-react-material-ui "0.2.46"]
- [compassus "1.0.0-alpha3"]]
- Then create:
- (ns kap.core
- (:require [cljsjs.material-ui]
- [om.next :as om :include-macros true]
- [om.dom :as dom :include-macros true]
- [goog.dom :as gdom]
- [clojure.string :refer [join]]
- [cljs-react-material-ui.core :as ui]
- [compassus.core :as compassus]))
- .....
- (def routes
- {:routes {:totals TotalsTab}
- :index-route :totals})
- ....
- (om/defui TotalsTab
- Object
- (render [this]
- (println "RENDER")
- (ui/mui-theme-provider
- {:mui-theme (ui/get-mui-theme)}
- (dom/button nil "ABC2")))
- 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