-
Notifications
You must be signed in to change notification settings - Fork 3
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
Component slots #35
Component slots #35
Conversation
Is this ready for review? I didn't want to dive in if you're not happy with it yet, but I did see your reference comment on the other issue. |
Yeah, it is working so far. I have more ideas, but don't think I'll get to them for a while. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you run prettier? There's a config already in the project.
lib/node-builder.tsx
Outdated
inputs: React.JSX.Element[] | ||
outputs: React.JSX.Element[] | ||
inputGroups: React.JSX.Element[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the use-case for distinguishing between inputs
and inputGroups
? Can they be safely treated as the same thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, sure. I was really just replicated what you had. Not sure anyone would ever want to reverse them!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think they need to be generated separately, but it sounds like they can safely just be combined into a single inputs slot
Really? I've been going nuts without it since there is no .vscode folder for this project |
Yeah I don't use vscode but having the config in the project is fine with me. I do think there's a few IDE-agnostic config files all at the root including a prettier setup. Thanks for running the formatter! Will take a final look at this tomorrow. |
Rebased to main and then added more slots and made them available to custom nodes.