Problem creating elements when a prop is an intersection type
- Dominant language
- Rust
- Stars
- 22.3k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
When passing a prop (but only when that prop has a `defaultProps` prop) to a component, that prop will try to unify with both sides of the intersection, which will always fail as long as the two sides of the intersection are disjoint.
Tryflow: https://flow.org/try/#0JYWwDg9gTgLgBAKjgQwM5wEoFNkGN4BmUEIcARFDvmQNwBQdMAnmFnAJIB2MWUqW+YBE5wAvHADeBYFgA2AEwBccVDCjBOAcwC+cAGSTgSuJwCuIAEa9t9Zqw6dZGtuIl04caXOOr1WgDTucEbKZpa8gTYMuMKqwY7OylxOnC6SQSFwACwATIEeXgrKZAAWcrIQcADu0ApkkfR0uLJo6ADCJJCp3HBYAB48nPLo2HgwAHQd4MJY3AA8EgDUBBAQSQmp2gB86R6qyDDAuHDyWATIprIwAArEYOiuQQWryhopWEFRQZRDvAAUAEpdh44JQYKYoCIYCVgKhxmA7nCVhBxkZ6B5tHRMXQ5lMurNCKtRBI3s5dAB6LY0ODk8nVaAAa1QOLxMx6yOJf1JqXWPD4AkOwgBFKpNLpFkoyCZQA
Contributor guide
Assessment
This issue has not been assessed yet.