Improve type checking for mergeProps#17508
Improve type checking for mergeProps#17508msft-fluent-ui-bot merged 29 commits intomicrosoft:masterfrom
Conversation
…ompat for existing uses that need to be updated
|
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 6250191:
|
Asset size changes
Baseline commit: 7d60d28fb73b3cb48acd943f8fd4f4f91916e4dc (build) |
Perf Analysis
All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
Can we you please create an issue to track removal of |
I logged issues for each package that needs to be updated: #17553, #17554, #17555, #17556, #17557 |
…onverged-component-state
…ll/fluentui into converged-component-state
…onverged-component-state
…onverged-component-state
|
Hello @behowell! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
|
🎉 Handy links: |
#### Pull request checklist - [x] Implements changes discussed in RFC microsoft#17232 - [x] Include a change request file using `$ yarn change` #### Description of changes * Add `ComponentState` helper type that defines the State type from the Props type, for converged components * Improve type checking for `mergeProps`: * The first parameter must be a valid State object, and must provide values for every prop that should have a default * All other parameters must be partial State objects * Make minor type fixes to some components, caught by the updated type checking * Add `makeMergePropsCompat` function that maintains the more permissive type checking for components that require more involved fixes
Pull request checklist
$ yarn changeDescription of changes
ComponentStatehelper type that defines the State type from the Props type, for converged componentsmergeProps:makeMergePropsCompatfunction that maintains the more permissive type checking for components that require more involved fixes