fix: Fix slot render functions#27561
Merged
Merged
Conversation
|
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 3894bc2:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: d2f17a39e1ccd8b106a442a77a4a143432cb9d54 (build) |
Collaborator
📊 Bundle size reportUnchanged fixtures
|
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 701 | 700 | 5000 | |
| Button | mount | 394 | 414 | 5000 | |
| Field | mount | 1237 | 1251 | 5000 | |
| FluentProvider | mount | 775 | 764 | 5000 | |
| FluentProviderWithTheme | mount | 103 | 110 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 90 | 100 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 96 | 97 | 10 | |
| InfoButton | mount | 13 | 19 | 5000 | |
| MakeStyles | mount | 1197 | 1183 | 50000 | |
| Persona | mount | 1870 | 1894 | 5000 | |
| SpinButton | mount | 1443 | 1491 | 5000 |
…lots/fix-render-function
Collaborator
🕵 fluentuiv9 No visual regressions between this PR and main |
behowell
marked this pull request as ready for review
April 13, 2023 22:01
khmakoto
approved these changes
Apr 13, 2023
bsunderhus
approved these changes
Apr 14, 2023
Contributor
|
Here's the follow up on test #27575 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Previous Behavior
Slot render functions don't work. This was caused by the change to
resolveShorthandin #27472. It now sets the render function onSLOT_RENDER_FUNCTION_SYMBOLinstead ofchildren. The existinggetSlotsfunction is unaware ofSLOT_RENDER_FUNCTION_SYMBOL, and thus ignores the render function.New Behavior
Make
getSlotscheck forSLOT_RENDER_FUNCTION_SYMBOLand use that as the render function instead ofchildren, if present.Related Issue(s)
Note: This PR is a quick fix and doesn't include tests. There should be tests written that would have caught this bug. I logged this to track adding tests: