phronmophobic/membrane

Add better support for dynamic component calls in defui

phronmophobic opened this issue · 1 comments

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