Polymorphic: Conflicting props is typed using the "polymorphic" rather than the "as" #774
Unanswered
marceloadsj
asked this question in
Help
Replies: 1 comment 5 replies
-
I could have sworn there was an explicit reason why we made the original component props override before (it even mentions that I've created a draft PR that does what you're expecting for us to think through. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone.
I am having one issue with props in common between a Polymorphic Component and a component used on "as" prop.
Shouldn't the "as" component wins agains the original polymorphic component below it?
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wG4BYAKFEljhgE8wk4AqOFAZzgAUIAbBiGhgAFsDRxsuAgAEoKACbAAHgFoArsAD0RdDDWRBwqGIlkqVRUjT8UROGggA7TvADyUYAHNgzlPwAXLwCQiLiaAB0AGLQAO72isiYAMK4kM5IzjAAPABEAEYaMDAueQA0cADecEgqKOD8SMEFEAKoznAAvgB8FJRWNnYOTq7wAHIaIAVIUACi9Y3NIcbhEjHxiclp4C5ZuYXFpc4V1bWLYE3BzlMzUN19g7b2LKNucADKMF7O3gsNl2WAAowDgwJxgjU6gCrnA3D9vN0AJRwAC8PTgACkPgANSJzJogfb9Kh1WjwN7wGBId6ouAAbSocGZcBynh8fgC5xhSFRVUwAU4SC6cG0PXKlkoLNZ7N8-n4HE4fMm01m-yWIuhSz5AEYAEwAZhFYolUpZbK8cq5XD5XwR6sBmouTVReRQBTQeVF4qoAF1+kA
Beta Was this translation helpful? Give feedback.
All reactions