-
Notifications
You must be signed in to change notification settings - Fork 34
refactor(separator): update component #449
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
Conversation
Thank you for following the naming conventions! 🙏 |
validator: (value: string): boolean => { | ||
if (!isValidOrientation(value)) | ||
console.error(getInvalidOrientationError(String(value), SEPARATOR_NAME)) | ||
|
||
return true | ||
}, |
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 moved the prop validation from the component to the props itself. However, since the validator does not support a custom error message, I used console.error
instead of using throw new Error
.
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 added useListener and i send commit.
Another great job and a great works. Thank you for your work.
Actually, there is no emits in that component. That's why I didn't use |
The reason for this is that because you use emits at the top, the transition to the bottom is not applied, the emits remain in the script if the user sends emits. |
Yes, I understand that. But that component doesn't accept any emits it's actually empty |
I'm torn on this one, you're right, they both work. |
shall we merge ? |
Yes, please! |
Description
Linked Issues
cc #358
Additional context