mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 23:21:38 +02:00
🐛 Fixed problem with texts inside groups
This commit is contained in:
parent
a71a7d6951
commit
e1ccde6533
3 changed files with 16 additions and 6 deletions
|
@ -214,3 +214,10 @@
|
|||
(mf/use-effect (fn []
|
||||
(let [sub (->> stream (rx/subs on-subscribe))]
|
||||
#(rx/dispose! sub)))))
|
||||
|
||||
;; https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
|
||||
(defn use-previous [value]
|
||||
(let [ref (mf/use-ref)]
|
||||
(mf/use-effect
|
||||
#(mf/set-ref-val! ref value))
|
||||
(mf/ref-val ref)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue