From d2fe689fc5ff89048ce56c0c23b3e11d73530c97 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 6 Aug 2019 09:08:00 +0200 Subject: [PATCH] :bug: Use scheduler on chunked-list component. --- frontend/src/uxbox/util/components.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/uxbox/util/components.cljs b/frontend/src/uxbox/util/components.cljs index 90c734813c..9868381d15 100644 --- a/frontend/src/uxbox/util/components.cljs +++ b/frontend/src/uxbox/util/components.cljs @@ -34,7 +34,7 @@ state (mf/use-state initial)] (mf/use-effect {:deps true :init #(when (pos? (:pending-num @state)) - (swap! state update-state)) + (schedule-on-idle (fn [] (swap! state update-state)))) :end #(when % (rx/cancel! %))}) (for [item (:current @state)] (children item)))))