-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(react-card): use resolved slot instead of raw prop object #28517
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(react-card): use resolved slot instead of raw prop object #28517
Conversation
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 600 | 586 | 5000 | |
| Button | mount | 289 | 288 | 5000 | |
| Field | mount | 1049 | 1082 | 5000 | |
| FluentProvider | mount | 655 | 638 | 5000 | |
| FluentProviderWithTheme | mount | 73 | 81 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 68 | 68 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 66 | 66 | 10 | |
| InfoButton | mount | 15 | 9 | 5000 | |
| MakeStyles | mount | 849 | 848 | 50000 | |
| Persona | mount | 1687 | 1598 | 5000 | |
| SpinButton | mount | 1360 | 1298 | 5000 |
📊 Bundle size report
Unchanged fixtures
|
|
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. Latest deployment of this branch, based on commit c15ba47:
|
Asset size changes
Baseline commit: 57de08c18915440cdc54a1242bbdf948e2b0f562 (build) |
🕵 fluentuiv9 No visual regressions between this PR and main |
behowell
left a comment
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.
Added a comment about how to simplify this logic. It's probably better to merge this PR as it is now, and address my comment in a future PR, so as not to delay this bugfix.
packages/react-components/react-card/src/components/CardHeader/useCardHeader.ts
Show resolved
Hide resolved
* master: (105 commits) fix(react-card): use resolved slot instead of raw prop object (microsoft#28517) applying package updates Expose virtualize index/length for casual use (microsoft#28450) applying package updates chore: update projects to use `*` for inner workspace dependencies (microsoft#28426) Update react-components/react-portal README.md (microsoft#28520) [2 of N] Changes for Making first render cycle faster and fixing test cases (microsoft#27721) applying package updates docs(react-search): Add README, description, best practices (microsoft#28507) Fix contrast issues in V8 Fluent2 Dark Theme (microsoft#28486) [VR-Approval-Cli] Fixed the Bug & Added the pipelineID (microsoft#28506) [Onboarding] Generalized VR-Approval-Cli (microsoft#28255) Onboarding [VR-Approval-CLI] To upload baseline screenshots (microsoft#28294) feat: migrate private v9 react packages to new preview versioning scheme (microsoft#28474) applying package updates applying package updates chore: openItems property added to TreeOpenChangeData + minor internal improvements (microsoft#28491) Fix Virtualizers 'start buffer' overflow (microsoft#28437) docs(v0 migration): add note about nested popups (microsoft#28480) chore: move slots back to TreeItem and creates slot context (microsoft#28492) ...

This PR fixes an issue with card trying to resolve the header prop before calling
resolveShorthand. For more information, please refer to the original bug.