reflex
reflex copied to clipboard
Catch a JS Error + code cleanup
Description
Changes:
- Small refactoring in the hydrate middleware
- Add some security check to Icon component (to prevent some JS error being thrown)
- Throw error if children passed to
pc.icon() - Throw error if
tagcomponent is not passed.
- Throw error if children passed to
Checklist
All Submissions:
- [x] Have you followed the guidelines stated in CONTRIBUTING.md file?
- [x] Have you checked to ensure there aren't any other open Pull Requests for the desired changed?
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
New Feature Submission:
- [x] Does your submission pass the tests?
- [x] Have you linted your code locally prior to submission?
Changes To Core Features:
- [x] Have you added an explanation of what your changes do and why you'd like us to include them?
- [x] Have you successfully ran tests with your changes locally?