Skip to content

feat: Add consistent start and finish lifecycle callbacks#31644

Merged
ling1726 merged 9 commits intomicrosoft:masterfrom
ling1726:react-motion/feat/lifecycle-callbacks
Jun 11, 2024
Merged

feat: Add consistent start and finish lifecycle callbacks#31644
ling1726 merged 9 commits intomicrosoft:masterfrom
ling1726:react-motion/feat/lifecycle-callbacks

Conversation

@ling1726
Copy link
Contributor

Adds onMotionStart and onMotionFinish for both presence and motion components so that logic can be run when motions start and finish in userland.

Since there is no more animationstart or animationend events with web animations API, it's harder to run styling changes based on animation state.

Adds `onMotionStart` and `onMotionFinish` for both presence and motion
components so that logic can be run when motions start and finish in
userland.

Since there is no more `animationstart` or `animationend` events with
web animations API, it's harder to run styling changes based on
animation state.
@github-actions github-actions bot added this to the April Project Cycle Q1 2024 milestone Jun 10, 2024
@ling1726 ling1726 marked this pull request as ready for review June 10, 2024 17:54
@ling1726 ling1726 requested a review from a team as a code owner June 10, 2024 17:54
@fabricteam
Copy link
Collaborator

fabricteam commented Jun 10, 2024

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 658 660 5000
Button mount 287 304 5000
Field mount 1148 1146 5000
FluentProvider mount 720 726 5000
FluentProviderWithTheme mount 81 82 10
FluentProviderWithTheme virtual-rerender 43 33 10
FluentProviderWithTheme virtual-rerender-with-unmount 72 69 10
MakeStyles mount 892 870 50000
Persona mount 1800 1728 5000
SpinButton mount 1420 1461 5000
SwatchPicker mount 1557 1553 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 10, 2024

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-components
react-components: entire library
1.094 MB
270.67 kB
1.095 MB
270.762 kB
190 B
92 B
react-dialog
Dialog (including children components)
99.369 kB
30.021 kB
99.433 kB
30.054 kB
64 B
33 B
react-toast
Toast (including Toaster)
97.926 kB
29.538 kB
97.99 kB
29.568 kB
64 B
30 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
69.141 kB
20.157 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
212.636 kB
61.23 kB
react-components
react-components: FluentProvider & webLightTheme
44.442 kB
14.607 kB
react-portal-compat
PortalCompatProvider
8.39 kB
2.64 kB
react-timepicker-compat
TimePicker
103.487 kB
34.632 kB
🤖 This report was generated against a839e63a3d92e4d260f6269cbbc91fb3bb9bf1db

Copy link
Member

@layershifter layershifter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ling1726 ling1726 requested a review from layershifter June 11, 2024 07:09
@ling1726 ling1726 requested review from a team and mltejera as code owners June 11, 2024 07:12
@ling1726 ling1726 removed request for a team and mltejera June 11, 2024 07:14
@ling1726 ling1726 enabled auto-merge (squash) June 11, 2024 08:54
@ling1726 ling1726 merged commit ca19e3b into microsoft:master Jun 11, 2024
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jun 12, 2024
…escription

* master:
  chore(react-list-preview): Add bundle size tests (microsoft#31658)
  applying package updates
  feat:react-nav-preview Add a handful of accessibility features for Nav (microsoft#31649)
  feat: refactor anchor-button to use element internals and anchor proxy element (microsoft#31653)
  chore:(docs) New Component doc (microsoft#31611)
  style(react-nav-preview): fix formatting in barel file (microsoft#31671)
  feat(web-components): refactor progress bar to use ElementInternals (microsoft#31652)
  chore(react-components): split react libraries in two (/library and /stories) - last batch (microsoft#31581)
  fix(scripts-beachball): ignore web-components packages from v8 release scope (microsoft#31667)
  chore(react-components): split react libraries in two (/library and /stories) - cxe-red /2nd batch (microsoft#31580)
  chore: Remove recipes-react-components in favor of recipes package (microsoft#31647)
  feat: Add consistent start and finish lifecycle callbacks (microsoft#31644)
  chore(docs): Remove requirement of performance tests from epic template (microsoft#31662)
  chore(react-components): split react libraries in two (/library and /stories) - cxe-red /1st batch (microsoft#31579)
  docs(react-swatch-picker): added SwatchPicker page to Component Mapping (microsoft#31637)
  docs(dev-env): update minimal node version (microsoft#31638)
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jun 12, 2024
* master:
  chore(react-list-preview): Add bundle size tests (microsoft#31658)
  applying package updates
  feat:react-nav-preview Add a handful of accessibility features for Nav (microsoft#31649)
  feat: refactor anchor-button to use element internals and anchor proxy element (microsoft#31653)
  chore:(docs) New Component doc (microsoft#31611)
  style(react-nav-preview): fix formatting in barel file (microsoft#31671)
  feat(web-components): refactor progress bar to use ElementInternals (microsoft#31652)
  chore(react-components): split react libraries in two (/library and /stories) - last batch (microsoft#31581)
  fix(scripts-beachball): ignore web-components packages from v8 release scope (microsoft#31667)
  chore(react-components): split react libraries in two (/library and /stories) - cxe-red /2nd batch (microsoft#31580)
  chore: Remove recipes-react-components in favor of recipes package (microsoft#31647)
  feat: Add consistent start and finish lifecycle callbacks (microsoft#31644)
  chore(docs): Remove requirement of performance tests from epic template (microsoft#31662)
  chore(react-components): split react libraries in two (/library and /stories) - cxe-red /1st batch (microsoft#31579)
  docs(react-swatch-picker): added SwatchPicker page to Component Mapping (microsoft#31637)
  docs(dev-env): update minimal node version (microsoft#31638)
miroslavstastny pushed a commit to miroslavstastny/fluentui that referenced this pull request Jun 14, 2024
…31644)

Co-authored-by: Oleksandr Fediashov <olfedias@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants