-
Notifications
You must be signed in to change notification settings - Fork 170
chore: Widgetize flashbar #3334
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
base: main
Are you sure you want to change the base?
Conversation
const isReducedMotion = useReducedMotion(ref); | ||
const isVisualRefresh = useVisualRefresh(); |
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.
Moved isVisualRefresh
from the hook directly into component code to make DCE work for ALWAYS_VISUAL_REFRESH mode
const { __internalRootRef } = useBaseComponent('Flashbar', { | ||
props: { stackItems: restProps.stackItems }, | ||
}); |
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.
Moved it into the flashbar/index.tsx
file to make this hook run before the widget loaded
f36295b
to
45bc6af
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3334 +/- ##
========================================
Coverage 96.44% 96.44%
========================================
Files 795 797 +2
Lines 22701 22708 +7
Branches 7425 7774 +349
========================================
+ Hits 21893 21900 +7
+ Misses 801 754 -47
- Partials 7 54 +47 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
45bc6af
to
24e30e0
Compare
Description
Make flashbar component to load via widget
Related links, issue #, if available: n/a
How has this been tested?
Tests in my dev pipelines
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.