-
-
Notifications
You must be signed in to change notification settings - Fork 50.3k
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: Notification can not stack when first init #21531
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.
Could you please add tests to make sure this change works as expected?
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov Report
@@ Coverage Diff @@
## master #21531 +/- ##
==========================================
+ Coverage 97.83% 97.83% +<.01%
==========================================
Files 302 302
Lines 7024 7029 +5
Branches 1930 1941 +11
==========================================
+ Hits 6872 6877 +5
Misses 152 152
Continue to review full report at Codecov.
|
解释一下? |
notificationInstance[cacheKey].destroy(); | ||
Promise.resolve(notificationInstance[cacheKey]).then(instance => { | ||
instance.destroy(); | ||
}); | ||
delete notificationInstance[cacheKey]; |
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.
🤔 This is a ...
🔗 Related issue link
ref #20513
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge