(defn
require-with-callback
[{:keys [namespace], :as file-msg} callback]
(let
[request-url (resolve-ns namespace)]
(swap!
on-load-callbacks
assoc
request-url
(fn
[file-msg']
(swap! on-load-callbacks dissoc request-url)
(apply
callback
[(merge file-msg (select-keys file-msg' [:loaded-file]))])))
(figwheel-require (name namespace) true)))