Don't unnecessary load jail upon figwheel reload
This commit is contained in:
parent
3df4a7f1e4
commit
00132c5921
|
@ -10,15 +10,11 @@
|
||||||
(def cnt (r/atom 0))
|
(def cnt (r/atom 0))
|
||||||
(defn reloader [] @cnt [core/app-root])
|
(defn reloader [] @cnt [core/app-root])
|
||||||
(def root-el (r/as-element [reloader]))
|
(def root-el (r/as-element [reloader]))
|
||||||
(defn callback []
|
|
||||||
(swap! cnt inc)
|
|
||||||
(status-im.native-module.core/init-jail)
|
|
||||||
(re-frame.core/dispatch [:load-commands!]))
|
|
||||||
|
|
||||||
(figwheel/watch-and-reload
|
(figwheel/watch-and-reload
|
||||||
:websocket-url "ws://10.0.3.2:3449/figwheel-ws"
|
:websocket-url "ws://10.0.3.2:3449/figwheel-ws"
|
||||||
:heads-up-display false
|
:heads-up-display false
|
||||||
:jsload-callback callback)
|
:jsload-callback #(swap! cnt inc))
|
||||||
|
|
||||||
(utils.handlers/add-pre-event-callback rr/pre-event-callback)
|
(utils.handlers/add-pre-event-callback rr/pre-event-callback)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue