fix: all pages loading slow

pull/645/head
Haoji Xu 2020-09-05 18:37:17 +08:00 committed by Tienson Qin
parent da80086e48
commit 28ddeedfec
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@
(rum/defc all-pages < rum/reactive (rum/defc all-pages < rum/reactive
{:did-mount (fn [state] {:did-mount (fn [state]
(let [current-repo (state/sub :git/current-repo)] (let [current-repo (state/sub :git/current-repo)]
(db/remove-orphaned-pages! current-repo)) (js/setTimeout #(db/remove-orphaned-pages! current-repo) 0))
state)} state)}
[] []
(let [current-repo (state/sub :git/current-repo)] (let [current-repo (state/sub :git/current-repo)]