From 00132c5921889df5066e968e3e18148344af501d Mon Sep 17 00:00:00 2001 From: janherich Date: Wed, 29 Nov 2017 13:32:53 +0100 Subject: [PATCH] Don't unnecessary load jail upon figwheel reload --- env/dev/env/android/main.cljs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/env/dev/env/android/main.cljs b/env/dev/env/android/main.cljs index e9a810c134..861b43b516 100644 --- a/env/dev/env/android/main.cljs +++ b/env/dev/env/android/main.cljs @@ -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)