Fork me on GitHub
#lein-figwheel
<
2016-10-24
>
hlolli12:10:36

Is there any way to add :init or :ring-init into :figwheel-options (using the figwheel scss script)?

danielcompton21:10:33

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?

danielcompton21:10:51

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)))

danielcompton21:10:00

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