-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(module:message): fix lazy load problem #3797
Conversation
Deploy preview for ng-zorro-master ready! Built with commit 22e4073 |
Deploy preview for ng-zorro-master ready! Built with commit bb69d20 |
Codecov Report
@@ Coverage Diff @@
## master #3797 +/- ##
==========================================
- Coverage 95.37% 95.36% -0.01%
==========================================
Files 706 709 +3
Lines 14515 14574 +59
Branches 1915 1924 +9
==========================================
+ Hits 13843 13898 +55
- Misses 244 246 +2
- Partials 428 430 +2
Continue to review full report at Codecov.
|
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.
动态修改配置的问题似乎和当前的 bug 冲突
this._container.setConfig(config); | ||
} | ||
|
||
protected _generateMessageId(): string { |
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.
这个变成类的静态 public 方法会不会更合适?
return resultMessage; | ||
} | ||
|
||
config(config: MessageConfig): void { |
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.
如果用户在两个 FeatureModule 里都引入了 NzMessageModule,那么在其中一个 module 调用此方法时,对其他 module 里的 message container 应该不会生效,因为每个 module 都会创建自己的 service 实例。
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.
等 global config 再来修好了
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
* fix(module:message): fix lazy load problem close NG-ZORRO#3794 * test(module:message): fix test * fix(module:message): fix module
* fix(module:message): fix lazy load problem close NG-ZORRO#3794 * test(module:message): fix test * fix(module:message): fix module
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #3794
What is the new behavior?
Does this PR introduce a breaking change?
Other information