Skip to content

Show CLJS compilation errors on screen when using figwheel

Compare
Choose a tag to compare
@drapanjanas drapanjanas released this 09 Jan 23:07
· 380 commits to master since this release
  • Using AppRegistry.registerComponent to init app, and preserve initially registered root component of the app
  • Enable figwheel heads up display

Upgrade your existing project:

1.Run command re-natal upgrade
2.Change definition of init function in core.cljs to:

(defn init []
  (dispatch-sync [:initialize-db])
  (.registerComponent app-registry "YourAppName" #(r/reactify-component app-root)))

3.Rename main application component in core.cljs to app-root:

(defn app-root [] 
  ...
)

4.Delete function mount-root from core.cljs