Is there any way to add :init or :ring-init into :figwheel-options (using the figwheel scss script)?
Is there any interest in a PR to figwheel for an option with-reload
which would wrap the figwheel reload in a function so dynamic bindings (or other things) can be set?
It could subsume :on-jsload
, :before-jsload
, e.g.
(defn my-with-reload-fn [reload-fn]
(do (stuff before reload)
(reload-fn)
(stuff after reload)))
so the default with-reload
function would call the on-jsload
and before-jsload
, but users could replace it with a single with-jsload
function that would handle both