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:
parent
66e877ed40
commit
2ba7996116
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue