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

implement folding of defaultProps #2597

Merged
merged 3 commits into from
Jun 5, 2019
Merged

implement folding of defaultProps #2597

merged 3 commits into from
Jun 5, 2019

Conversation

quantizor
Copy link
Contributor

@quantizor quantizor commented Jun 5, 2019

Supersedes #2260 by folding all nested properties including theme if passed
Fixes #2246

I specifically chose the merge-anything library because of its default handling for non plain-object types (replace, not merge.) It's about 500b gzipped so not too bad of an addition and I'm not sure we could do much better hand-rolling it.

specifically chose the merge-anything library because of its
default handling for non plain-object types (replace, not merge)
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.

Default props behavior changed between v3 and v4
3 participants