Add better support for dynamic component calls in defui
phronmophobic opened this issue · 1 comments
phronmophobic commented
Defui should support something like
(defui dynamic-component [{:keys [my-component props]}]
;; support fully dynamic
(defui-call
(my-component props))
(defui-call
;; allow keys to be provided for efficiency.
;; not sure about this syntax.
(my-component props [:foo :bar]))
(defui-call
;; also support literal maps
(my-component {:foo foo
:bar bar}))
)
phronmophobic commented
Some discussion: https://clojurians.slack.com/archives/CVB8K7V50/p1669723237116279.