refactor/useEventEmitter 支持指定名称订阅,支持订阅方法结果返回,支持同步调用异步订阅方法,支持订阅方法添加使用依赖项 #2585
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
背景: 原有hook无法满足订阅指定名称方法.不支持同步调用异步订阅方法。不支持传递依赖项,不支持调用订阅方法后返回结果.
解决方案: 重构内部代码.兼容原来的版本.添加新的支持.
📝 Changelog
☑️ Self Check before Merge