-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use broader return types in HorizontalRuleNode
#4097
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Thanks! Q: Why would a horizontal rule not be inline? Same for the updateDOM
behavior. It feels to me like if you want to create a HorizontalRule that diverges too much from what we have on the playground you may want to create your own Node.
That's a fair point about Mainly, I see the specific return types as an unnecessary limitation. I'd be happy to revert either |
You're right! Let's just revert |
Thank you! |
Use broader return types inside
HorizontalRuleNode
to make extending the node easier. Currently, subclasses cannot override these methods with anything other than what's specified byHorizontalRuleNode
.