-
Notifications
You must be signed in to change notification settings - Fork 19
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
Component lifecycle methods #104
Conversation
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 😁 |
Replaced it with a much nicer getter in the test itself 👍 |
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 🙏 |
This PR adds component lifecycle methods
onAddComponent()
andonRemoveComponent
, 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.