-
Notifications
You must be signed in to change notification settings - Fork 362
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
defcomponent #254
Comments
Hey @JulianLeviston, have you seen the component macro https://github.com/swannodette/om/wiki/Documentation#component ?
would become...
|
Yeah I have, thanks... it only implements render, though. it's not what I'm asking for. (Most of my components use at least render-state & init-state and quite a few of them use the prop change methods like will-receive-props). |
I have no plans for any macro sugar at this time. |
@swannodette thanks for your consideration. Doesn't it bother you that you write a lot of repeated code? |
It does not bother me. om-tools exists for people who find value in sugar. |
@swannodette Thank you. |
For the record, om-tools does not force extra validation upon you. The schema features are there for you to use if you wish for either runtime validation or code documentation, but if you don't use them the |
@JulianLeviston Actually, it just occurred to me that what you're asking for already exists in om-tools. See |
Thank you for taking the time to write to me, @loganlinn I'll definitely check it out. I appreciate your response a lot. |
Would you consider creating an extremely thin defcomponent (to clean up repetition usage) and putting it into om proper? Pretty much same syntax as om-tools, but without all of the extra validation (and other) stuff they have?
The other thing that I think would be useful is not having to specify the options hash and the #js literals. Not having to do these has been really handy.
The text was updated successfully, but these errors were encountered: