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

Remove the defaultArgs property from components #265

Merged
merged 20 commits into from
Jan 11, 2023
Merged

Conversation

ellthompson
Copy link
Contributor

The current defaultArgs implementation in components can be confusing to interpret, it requires the inheritance of default args from parent classes and requires combination with user supplied arguments in the constructor. This can be replaced by supplying the necessary class properties with fallback values.

@ellthompson ellthompson requested a review from a team January 10, 2023 16:10
@ellthompson ellthompson self-assigned this Jan 10, 2023
Copy link
Contributor

@willeastcott willeastcott left a comment

Choose a reason for hiding this comment

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

OMG! 200 lines eliminated. Now that's what I call a nice PR! 🚀

ellthompson and others added 2 commits January 10, 2023 16:48
Co-authored-by: Will Eastcott <will@playcanvas.com>
@ellthompson ellthompson merged commit f537b44 into main Jan 11, 2023
@ellthompson ellthompson deleted the remove-default-args branch January 11, 2023 15:25
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.

None yet

2 participants