mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
Do not fetch history on each history navigation action.
This commit is contained in:
parent
8c64c7c3eb
commit
0746385555
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@
|
|||
(let [page @wb/page-l]
|
||||
(rs/emit! (dpg/fetch-page-history (:id page)))
|
||||
(add-watch wb/page-l ::key (fn [_ _ ov nv]
|
||||
(when (> (:version nv) (:version ov))
|
||||
(when (and (> (:version nv) (:version ov))
|
||||
(not (:history nv)))
|
||||
(rs/emit! (dpg/fetch-page-history (:id nv))))))
|
||||
own))
|
||||
|
||||
|
|
Loading…
Reference in a new issue