Closed Deraen closed 7 years ago
Work-around until the next release restores figwheel's ability to reload compiled files:
(set! js/goog.net.jsloader.load
#(goog.net.jsloader.safeLoad
(goog.html.legacyconversions/trustedResourceUrlFromString %1)
%2))
This has been released already.
On Oct 2, 2017, at 10:11 PM, Terje Norderhaug notifications@github.com wrote:
Work-around until the next release restores figwheel's ability to reload compiled files:
(set! js/goog.net.jsloader.load
(goog.net.jsloader.safeLoad
(goog.html.legacyconversions/trustedResourceUrlFromString %1) %2))
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.
Next ClojureScript updates Closure-library version
New version removed deprecated jsloader load function: https://github.com/google/closure-library/commit/988ff900886e959a888485ee56d1540d1bf2f29d
https://github.com/bhauman/lein-figwheel/blob/48eba2f7e481be4079fdfc4b606d3eb52217a891/support/src/figwheel/client/file_reloading.cljs#L208
Instead, one needs to use
goog.html.legacyconversions
to createsafeUrl
and usesafeLoad
function instead.Same fix at Boot-reload: https://github.com/adzerk-oss/boot-reload/commit/025dfbc1ecb772d0193060430a5ea45c6563ba84