Skip to content
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

allow optional props with None default value #3179

Conversation

benedikt-bartscher
Copy link
Contributor

Closes #3158

@benedikt-bartscher benedikt-bartscher marked this pull request as ready for review April 28, 2024 10:34
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also add a test for when the type inside the Optional is a Union ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, i'll add more tests later, thanks for your review

@benedikt-bartscher benedikt-bartscher marked this pull request as draft April 29, 2024 23:44
@benedikt-bartscher benedikt-bartscher force-pushed the optional-component-prop-validation branch from 9e66239 to d08a5a4 Compare April 30, 2024 00:09
@benedikt-bartscher benedikt-bartscher force-pushed the optional-component-prop-validation branch from e5617c0 to 66f7d15 Compare April 30, 2024 00:18
@benedikt-bartscher benedikt-bartscher marked this pull request as ready for review April 30, 2024 00:27
Lendemor
Lendemor previously approved these changes Apr 30, 2024
@picklelo picklelo merged commit e31b458 into reflex-dev:main May 1, 2024
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Component prop validation
3 participants