Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better support for dynamic component calls in defui #61

Open
phronmophobic opened this issue Oct 7, 2022 · 1 comment
Open

Add better support for dynamic component calls in defui #61

phronmophobic opened this issue Oct 7, 2022 · 1 comment

Comments

@phronmophobic
Copy link
Owner

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 phronmophobic changed the title Add better support for dynanic component calls in defui Add better support for dynamic component calls in defui Oct 7, 2022
@phronmophobic
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant