Skip to content

Commit

Permalink
dom3/WithElement: site-free Body
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurC committed Aug 13, 2024
1 parent ac32d4f commit 1eb4aaa
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/hyperfiddle/electric_dom3.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,11 @@
the context of the new Element."
([tag Body] ($ WithElement nil tag Body))
([ns tag Body]
(e/client
(let [mp (e/mount-point)
elem (create-element ns tag mp)]
(e/input (attach! node (e/tag) elem))
(e/input (m/reductions mount-items elem mp))
(binding [node elem] ($ Body))))))
(let [mp (e/client (e/mount-point))
elem (e/client (create-element ns tag mp))]
(e/client (e/input (attach! node (e/tag) elem)))
(e/client (e/input (m/reductions mount-items elem mp)))
(binding [node elem] ($ Body)))))

;; DONE what should `element*` return?
;; - nil :: no because we want UI to produce values
Expand Down

0 comments on commit 1eb4aaa

Please sign in to comment.