mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
🐛 Use scheduler on chunked-list component.
This commit is contained in:
parent
c9e88cfdb7
commit
d2fe689fc5
1 changed files with 1 additions and 1 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Reference in a new issue