-
Notifications
You must be signed in to change notification settings - Fork 156
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
chore: Add initialCheck
capability to alert/flash content API
#2879
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2879 +/- ##
=======================================
Coverage 96.21% 96.21%
=======================================
Files 761 761
Lines 21490 21511 +21
Branches 7359 7357 -2
=======================================
+ Hits 20676 20697 +21
Misses 761 761
Partials 53 53 ☔ View full report in Codecov by Sentry. |
6700440
to
be9ecb4
Compare
@@ -77,6 +77,7 @@ | |||
"@types/react-resizable": "^1.7.4", | |||
"@types/react-router": "^5.1.18", | |||
"@types/react-router-dom": "^5.3.2", | |||
"@types/react-test-renderer": "^18.3.0", |
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.
The types version does not match the actual version of the dependency
Description
Add capability to conditionally hide the initial render of alerts and flashes. This reduces the layout shift
that occurs when the alert/flash content is then replaced via runtime API.
Related links, issue #, if available: n/a
How has this been tested?
New unit tests.
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.