Don't unnecessary load jail upon figwheel reload

This commit is contained in:
janherich 2017-11-29 13:32:53 +01:00 committed by Jan Herich
parent 3df4a7f1e4
commit 00132c5921
1 changed files with 1 additions and 5 deletions

View File

@ -10,15 +10,11 @@
(def cnt (r/atom 0))
(defn reloader [] @cnt [core/app-root])
(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
:websocket-url "ws://10.0.3.2:3449/figwheel-ws"
:heads-up-display false
:jsload-callback callback)
:jsload-callback #(swap! cnt inc))
(utils.handlers/add-pre-event-callback rr/pre-event-callback)