Render than do init logic
This commit is contained in:
parent
7972264b5b
commit
09a982ba05
@ -264,10 +264,10 @@
|
||||
(defn init
|
||||
"Initializes the sidebar"
|
||||
[]
|
||||
(analytics/init-amplitude)
|
||||
(analytics/log-event "OPENED_SIDEBAR")
|
||||
(let [initial-state (update-state {:type :loading :loading true} (model))]
|
||||
(run-render-loop initial-state)
|
||||
(analytics/init-amplitude)
|
||||
(analytics/log-event "OPENED_SIDEBAR")
|
||||
(go (-> (fetch-hits)
|
||||
(<!)
|
||||
(#(update-state {:type :got-hits
|
||||
|
Loading…
Reference in New Issue
Block a user