Fork me on GitHub
#lein-figwheel
<
2016-03-27
>
adamkowalski20:03:53

@bhauman: I am having a strange issue with figwheel. I am using highlight.js to show some clojure code and I have to use a function called hljs.initHighlighting() to get all the syntax highlighting to work. It seems to work when the browser first loads, but then on subsequent changes when fighweel reloads the page the highlighting disappears. Is there anything I can do to remedy this? Can I hook into the refresh event and recall the function somehow?

adamkowalski20:03:09

In your example online you show this piece of code

;; put client config options in :figwheel
              :figwheel { :websocket-host "localhost" 
                          :on-jsload "example.core/fig-reload”}

adamkowalski20:03:02

but I am using the approach that om next demonstrates where I pass a config into ra/start-figwheel!. Can I do something similar there?