【发布时间】:2018-02-27 10:50:23
【问题描述】:
Figwheel 可以很好地显示下面的代码。但我必须刷新页面才能看到任何更改。 Figwheel 必须改变什么才能显示变化?有没有强制重绘而不丢失应用程序状态的命令?
顺便说一句:Chrome 已禁用缓存true,并且在保存文件时会出现 CLJS 图标。
(defn simple-example []
[ui/mui-theme-provider {:mui-theme (get-mui-theme
{:palette {:text-color (color :blue800)}})}
[:div
[ui/app-bar {:title "Hi all"
:icon-class-name-right "muidocs-icon-navigation-expand-more"}]
[ui/paper
[:div
[ui/tabs
[ui/tab {:label "Menu" :value "0"}
[:div "Hello world"]]]]]]]))
(defn ^:export run []
(render [simple-example]
(js/document.getElementById "app"))))
【问题讨论】:
-
您每次写入后都会弹出“cljs-icon”吗?那么 figwheel 是否没有加载您的更改或更改没有出现效果?
标签: clojure clojurescript figwheel