lore
lore copied to clipboard
[lore-hook-connect] props from connect should override props from parent component
If you pass a prop called countries to a component wrapped with connect, that also defines that prop (for whatever reason), it does not override the parent prop.
This is not expected behavior. Props provided through connect should override props from parent components.
For reference, this is the line in the code that shows parent props overwriting connect-generated props:
https://github.com/lore/lore/blob/master/packages/lore-hook-connect/src/connect.js#L125