0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-25 00:06:09 -05:00

🐛 Fix unexpected viewport update on leave workspace

This commit is contained in:
Andrey Antukh 2023-08-04 08:58:44 +02:00
parent 66e877ed40
commit 2ba7996116

View file

@ -106,7 +106,7 @@
(mf/set-ref-val! prev-val-ref node))))]
(mf/with-effect []
(mf/with-layout-effect []
;; On dismount we need to disconnect the current observer
(fn []
(when-let [observer (mf/ref-val observer-ref)]