You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
Thank you for your pull request. Please review below requirements.
Bug fixes and new features should include tests and possibly benchmarks.
Contributors guide:
https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md
感谢您贡献代码。请确认下列 checklist 的完成情况。
Bug 修复和新功能必须包含测试,必要时请附上性能测试。
Contributors guide:
https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md
-->
##### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to
[x]. -->
- [ ] `npm test` passes
- [ ] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines
##### Affected core subsystem(s)
<!-- Provide affected core subsystem(s). -->
##### Description of change
<!-- Provide a description of the change below this comment. -->
<!--
- any feature?
- close https://github.com/eggjs/egg/ISSUE_URL
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced static lifecycle hooks for improved lifecycle management.
- Added a `preLoad` method to enhance egg object initialization.
- Implemented a `preLoad` method for module pre-loading operations.
- Created a new class `Foo` to manage lifecycle events with various
hooks.
- **Bug Fixes**
- Enhanced error handling in the `preLoad` function to provide clearer
error messages.
- **Tests**
- Expanded test suite to validate the functionality of the new lifecycle
methods and pre-loading behavior.
- **Documentation**
- Added metadata for the new lifecycle module in `package.json`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments