mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🐛 Fix problems with old texts
This commit is contained in:
parent
ec63d23666
commit
64ffa9bb3f
10 changed files with 107 additions and 77 deletions
|
@ -48,11 +48,10 @@
|
|||
(mf/set-ref-val! prev-obs-ref mutation-obs)
|
||||
(.observe mutation-obs node options))))))]
|
||||
|
||||
(mf/use-effect
|
||||
(fn []
|
||||
(fn []
|
||||
(when-let [^js prev-obs (mf/ref-val prev-obs-ref)]
|
||||
(.disconnect prev-obs)
|
||||
(mf/set-ref-val! prev-obs-ref nil)))))
|
||||
(mf/with-effect
|
||||
(fn []
|
||||
(when-let [^js prev-obs (mf/ref-val prev-obs-ref)]
|
||||
(.disconnect prev-obs)
|
||||
(mf/set-ref-val! prev-obs-ref nil))))
|
||||
|
||||
[node-ref set-node]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue