-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: Removing possible recursive loop in Coachmark #26934
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
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 ef6ceb3:
|
Asset size changes
Baseline commit: 1184f85a5fce46d831c0a85f5e3c4ab76f87c6c4 (build) |
📊 Bundle size report🤖 This report was generated against 1184f85a5fce46d831c0a85f5e3c4ab76f87c6c4 |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 1097 | 1141 | 5000 | |
| Breadcrumb | mount | 3104 | 2984 | 1000 | |
| Checkbox | mount | 2671 | 2581 | 5000 | |
| CheckboxBase | mount | 2291 | 2398 | 5000 | |
| ChoiceGroup | mount | 4478 | 4321 | 5000 | |
| ComboBox | mount | 1261 | 1252 | 1000 | |
| CommandBar | mount | 9715 | 9890 | 1000 | |
| ContextualMenu | mount | 16790 | 16953 | 1000 | |
| DefaultButton | mount | 1365 | 1387 | 5000 | |
| DetailsRow | mount | 3488 | 3386 | 5000 | |
| DetailsRowFast | mount | 3348 | 3253 | 5000 | |
| DetailsRowNoStyles | mount | 3234 | 3328 | 5000 | |
| Dialog | mount | 3169 | 3093 | 1000 | |
| DocumentCardTitle | mount | 597 | 582 | 1000 | |
| Dropdown | mount | 3144 | 3213 | 5000 | |
| FocusTrapZone | mount | 1991 | 2061 | 5000 | |
| FocusZone | mount | 1836 | 1900 | 5000 | |
| GroupedList | mount | 51823 | 58054 | 2 | |
| GroupedList | virtual-rerender | 24491 | 24027 | 2 | |
| GroupedList | virtual-rerender-with-unmount | 92031 | 93814 | 2 | |
| GroupedListV2 | mount | 567 | 569 | 2 | |
| GroupedListV2 | virtual-rerender | 547 | 559 | 2 | |
| GroupedListV2 | virtual-rerender-with-unmount | 559 | 562 | 2 | |
| IconButton | mount | 1837 | 1916 | 5000 | |
| Label | mount | 731 | 732 | 5000 | |
| Layer | mount | 4071 | 4342 | 5000 | |
| Link | mount | 845 | 828 | 5000 | |
| MenuButton | mount | 1661 | 1672 | 5000 | |
| MessageBar | mount | 2289 | 2362 | 5000 | |
| Nav | mount | 3038 | 3285 | 1000 | |
| OverflowSet | mount | 1373 | 1260 | 5000 | |
| Panel | mount | 2443 | 2418 | 1000 | |
| Persona | mount | 1296 | 1313 | 1000 | |
| Pivot | mount | 1651 | 1685 | 1000 | |
| PrimaryButton | mount | 1533 | 1531 | 5000 | |
| Rating | mount | 6711 | 7037 | 5000 | |
| SearchBox | mount | 1540 | 1538 | 5000 | |
| Shimmer | mount | 2824 | 2887 | 5000 | |
| Slider | mount | 2140 | 2100 | 5000 | |
| SpinButton | mount | 4600 | 4483 | 5000 | |
| Spinner | mount | 819 | 774 | 5000 | |
| SplitButton | mount | 3102 | 2897 | 5000 | |
| Stack | mount | 850 | 825 | 5000 | |
| StackWithIntrinsicChildren | mount | 2220 | 2385 | 5000 | |
| StackWithTextChildren | mount | 4676 | 4728 | 5000 | |
| SwatchColorPicker | mount | 10424 | 10339 | 5000 | |
| TagPicker | mount | 2736 | 2445 | 5000 | |
| TeachingBubble | mount | 94947 | 93647 | 5000 | |
| Text | mount | 814 | 798 | 5000 | |
| TextField | mount | 1591 | 1604 | 5000 | |
| ThemeProvider | mount | 1434 | 1508 | 5000 | |
| ThemeProvider | virtual-rerender | 1091 | 1027 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 2198 | 2089 | 5000 | |
| Toggle | mount | 1125 | 1117 | 5000 | |
| buttonNative | mount | 542 | 549 | 5000 |
Moves useGetBounds() to module scope so the hook is not recreated on every render. This also ensures we're not relying on component scope to consume props. Updates useGetBounds() to use useEffect()'s dependency array to prevent continual re-renders.
fix: refactor useGetBounds
* master: (93 commits) chore: migrate to jest 27 (microsoft#26835) chore: make lint task run without need of build (microsoft#26872) chore(react-table): exports UseTableSelectionOptions (microsoft#26892) applying package updates fix(react-card): allow elements to grow to fill the available space (microsoft#26616) fix: Popover without focus trap should not be aria-hidden (microsoft#26932) applying package updates applying package updates fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574) fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905) fix: Removing possible recursive loop in Coachmark (microsoft#26934) Combobox: Fix cursor jumping to the end of input (microsoft#26931) Fix missing icons on website (microsoft#26797) fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881) chore: Clean up Input's interactive styles (microsoft#26865) Remove codeowners from change files (microsoft#26935) chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904) docs: Remove testing code from MenuList example (microsoft#26929) chore: refactor SpinButton to use makeResetStyles (microsoft#26867) feat: Set overflow on positioned element when `autosize` is applied (microsoft#26868) ...
…r-component * feat/drawer-base-component: (141 commits) remove DrawerContainer feat: WIP add initial draft for Drawer and DrawerContainer chore: migrate to jest 27 (microsoft#26835) chore: make lint task run without need of build (microsoft#26872) chore(react-table): exports UseTableSelectionOptions (microsoft#26892) applying package updates fix(react-card): allow elements to grow to fill the available space (microsoft#26616) fix: Popover without focus trap should not be aria-hidden (microsoft#26932) applying package updates applying package updates fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574) fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905) fix: Removing possible recursive loop in Coachmark (microsoft#26934) Combobox: Fix cursor jumping to the end of input (microsoft#26931) Fix missing icons on website (microsoft#26797) fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881) chore: Clean up Input's interactive styles (microsoft#26865) Remove codeowners from change files (microsoft#26935) chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904) docs: Remove testing code from MenuList example (microsoft#26929) ...
Don't fire useEffect unless a dependency changes.
fixes #26933