forked from dmotz/natal
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make compilation errors and other problems appear in simulator screen #8
- do not use AppRegistry.registerRunnable for mounting component to id 1, this prevents warning to be shown in yellow box. Instead use AppRegistry.registerComponent - shim some document functions so that enabled figwheel heads-up-display works without errors and logs warnings to console (that will be shown on screen in yellow box) - figwheel splash component now loads real app and renders root component. That has to be done to avoid using AppRegistry.registerRunnable to render real app
- Loading branch information
1 parent
253f23f
commit a1d875f
Showing
3 changed files
with
75 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
(ns ^:figwheel-no-load env.$PLATFORM$.main | ||
(:require [$PROJECT_NAME_HYPHENATED$.$PLATFORM$.core :as core] | ||
(:require [reagent.core :as r] | ||
[$PROJECT_NAME_HYPHENATED$.$PLATFORM$.core :as core] | ||
[figwheel.client :as figwheel :include-macros true])) | ||
|
||
(enable-console-print!) | ||
|
||
(def cnt (r/atom 0)) | ||
(defn reloader [] @cnt [core/app-root]) | ||
(def root-el (r/as-element [reloader])) | ||
|
||
(figwheel/watch-and-reload | ||
:websocket-url "ws://$DEV_HOST$:3449/figwheel-ws" | ||
:heads-up-display false | ||
:jsload-callback core/mount-root) | ||
|
||
(core/init) | ||
(core/mount-root) | ||
|
||
:heads-up-display true | ||
:jsload-callback #(swap! cnt inc)) | ||
|
||
(core/init) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters