mirror of
https://github.com/penpot/penpot.git
synced 2025-07-29 11:57:26 +02:00
🎉 Duplicate move
This commit is contained in:
parent
d6c97f9d19
commit
174b9db1d2
10 changed files with 428 additions and 320 deletions
|
@ -227,3 +227,10 @@
|
|||
|
||||
[(deref state) ref]))
|
||||
|
||||
|
||||
(defn use-stream
|
||||
"Wraps the subscription to a strem into a `use-effect` call"
|
||||
[stream on-subscribe]
|
||||
(mf/use-effect (fn []
|
||||
(let [sub (->> stream (rx/subs on-subscribe))]
|
||||
#(rx/dispose! sub)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue