mirror of
https://github.com/penpot/penpot.git
synced 2026-05-10 10:38:17 +00:00
🐛 Fix unexpected viewport update on leave workspace
This commit is contained in:
parent
66e877ed40
commit
2ba7996116
@ -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)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user