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

Component lifecycle methods #104

Merged
merged 4 commits into from
Jul 12, 2023

Conversation

geist-2501
Copy link
Contributor

This PR adds component lifecycle methods onAddComponent() and onRemoveComponent, which replaces the component hooks. As such, this PR also removes component hooks.

Discussion of this change can be found in issue #103.

The TL;DR of #103 is that lifecycle methods have are just a better developer experience over component hooks, with next to no performance hit.

Tests and code documentation have also been updated.

The removal of component hooks has resulted in slightly uglier tests, and I've pointed these out.

@Quillraven
Copy link
Owner

Thank you for your contribution! I have one minor remark about the test with the callback as system constructor argument. Should be possible to restructure the tests without using that.

Please have a look and then we are ready to merge 😁

@Quillraven Quillraven added this to the 2.4 milestone Jul 11, 2023
@Quillraven Quillraven added the enhancement New feature or request label Jul 11, 2023
@geist-2501
Copy link
Contributor Author

Replaced it with a much nicer getter in the test itself 👍

@Quillraven
Copy link
Owner

Cool, great stuff! I will make the SNAPSHOT release on maven tomorrow. And with that I will close the 2.4 features as well. I will do some testing on the weekend and if nothing crazy pops up, then we are good to go for the next stable release!

Thank you again for the support 🙏

@Quillraven Quillraven merged commit 01e46dc into Quillraven:master Jul 12, 2023
3 checks passed
@geist-2501 geist-2501 deleted the component-lifecycle-methods branch July 12, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants