mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 15:51:39 +02:00
feat(frontend): add many adaptations to rumext breaking changes
This commit is contained in:
parent
9ddd9f317d
commit
321c8d14e1
14 changed files with 149 additions and 174 deletions
|
@ -31,10 +31,10 @@
|
|||
|
||||
(mx/defcs image-component
|
||||
{:mixins [mx/static mx/reactive]
|
||||
:will-mount (fn [own]
|
||||
:init (fn [own]
|
||||
;; TODO: maybe do it conditionally
|
||||
;; (only fetch when it's not fetched)
|
||||
(when-let [id (-> own :rum/args first :image)]
|
||||
(when-let [id (-> own ::mx/props first :image)]
|
||||
(st/emit! (udi/fetch-image id)))
|
||||
own)}
|
||||
[own {:keys [id image] :as shape}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue