-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat: impl EggObjectLifecycle hook in decorator #119
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #119 +/- ##
==========================================
+ Coverage 92.98% 93.07% +0.08%
==========================================
Files 217 219 +2
Lines 4574 4604 +30
Branches 456 462 +6
==========================================
+ Hits 4253 4285 +32
+ Misses 321 319 -2
☔ View full report in Codecov by Sentry. |
@killagu 都实现了,可以看看。 |
this.called.push('postInject'); | ||
} | ||
|
||
async init(): Promise<void> { | ||
protected async init() { | ||
this.called.push('init should not called'); |
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.
@killagu 这样就能将 init 释放出来又做到老代码兼容。
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.
LGTM
3.8.0 |
closes #118
Checklist
npm test
passesAffected core subsystem(s)
Description of change