Skip to content

[react-dom]: Add support for Invoker Commands API#36257

Open
chirokas wants to merge 3 commits intofacebook:mainfrom
chirokas:invoker_commands_api
Open

[react-dom]: Add support for Invoker Commands API#36257
chirokas wants to merge 3 commits intofacebook:mainfrom
chirokas:invoker_commands_api

Conversation

@chirokas
Copy link
Copy Markdown
Contributor

Summary

  • Add support for Invoker Commands API

    This includes support for command, commandFor and onCommand. I did not simulate bubbling for the command event, similar to the scroll event. This means the event is only triggered on the target element, matching native browser behavior.

    The Invoker Commands API is currently supported in all major browsers.

  • Fix attribute-behavior fixture

    The attribute-behavior fixture hasn't worked on local builds, since the UMD support was removed in [UMD] Remove umd builds #28735

How did you test this change?

  • Attribute fixture
  • Added unit tests

@meta-cla meta-cla bot added the CLA Signed label Apr 12, 2026
@react-sizebot
Copy link
Copy Markdown

Comparing: 705268d...199d711

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB = 1.88 kB 1.88 kB
oss-stable/react-dom/cjs/react-dom-client.production.js +0.11% 612.91 kB 613.56 kB +0.07% 108.30 kB 108.38 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB = 1.88 kB 1.88 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js +0.10% 678.85 kB 679.49 kB +0.07% 119.27 kB 119.35 kB
facebook-www/ReactDOM-prod.classic.js +0.09% 698.24 kB 698.89 kB +0.06% 122.65 kB 122.73 kB
facebook-www/ReactDOM-prod.modern.js +0.09% 688.55 kB 689.21 kB +0.07% 121.03 kB 121.11 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 199d711

@chirokas chirokas marked this pull request as ready for review April 12, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants