🐛 Fixed problem with texts inside groups

This commit is contained in:
alonso.torres 2020-12-04 13:25:41 +01:00
parent a71a7d6951
commit e1ccde6533
3 changed files with 16 additions and 6 deletions

View file

@ -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)))