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

Don't allow to render child which is not in :lajter/children #41

Open
petterik opened this issue Jun 11, 2018 · 0 comments
Open

Don't allow to render child which is not in :lajter/children #41

petterik opened this issue Jun 11, 2018 · 0 comments

Comments

@petterik
Copy link
Owner

Children of a component must be declared in :lajter/children and calls to (render-child this child) should throw exceptions when called with a child that's not in the already defined children.

{:lajter/children []
 :render (fn [this props state] 
         (lajter.core/render-child this Child))}
                                     ;; ^^^^^^ is not in :lajter/children
;; This should throw
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