-
-
Notifications
You must be signed in to change notification settings - Fork 905
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
refactor: Component's lifecycle futures moved into LifecycleManager #1613
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tbh, I don't see much value on this change, we just moved the attributes to the LifecycleManager
but the logic is still on Component
.
I would rather keep them together unless we can figure it out a way to keep both things together.
Apart from this I am also curious if this comes with added benefits in the area of reusability in some places? Or is just purely a "clean-up" PR? I am fine with either the original code or this. Just wondering if this has extra benefits in the long run as well |
The idea here is that both
Given that |
That isn't true, they completers were already optional, so the footprint don't change, unless you are mentioned size as in line numbers, but if so, that difference is minimal and not worth having the attribute on a place and the logic in another.
Same as I mentioned above, IMO that difference is minimal and not worth having the attribute on a place and the logic in another. |
Even if a variable is
The |
This I agree! But for me, none of these are worth the drawback of having the fields on a class, while they are managed on a different place. If we can find a way to move the logic of |
Hmm, I see your point. I'll try to think of something that can be done along these lines. |
Description
Small refactor (which was proposed a long time ago) that moves
Component
's properties._loadCompleter
and._mountCompleter
into the_LifecycleManager
class without changing the user-facing API. The purpose of the move is to de-clutter theComponent
's namespace.Checklist
fix:
,feat:
,docs:
etc).docs
and added dartdoc comments with///
.examples
.Breaking Change
Related Issues
Closes #1426