Skip to content

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Nov 20, 2025

Fixes #33630

During the mutation phase, we disabled the event emitter. This caused onReset to be dropped when we automatically reset the form when a Form Action finishes. Controlled inputs would not have been reset if they're reset during onReset.

This could be implemented by scheduling the state updates from the Form Action instead. Arguably a footgun since you have to consider both now.

People could already work around by listening to the native reset event.

@meta-cla meta-cla bot added the CLA Signed label Nov 20, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Nov 20, 2025
@react-sizebot
Copy link

react-sizebot commented Nov 20, 2025

Comparing: b546603...4aa67d7

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.03% 608.67 kB 608.83 kB +0.03% 107.63 kB 107.66 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.02% 674.60 kB 674.76 kB +0.03% 118.58 kB 118.61 kB
facebook-www/ReactDOM-prod.classic.js +0.02% 694.04 kB 694.20 kB +0.03% 122.01 kB 122.04 kB
facebook-www/ReactDOM-prod.modern.js +0.02% 684.43 kB 684.59 kB +0.03% 120.40 kB 120.43 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-reconciler/cjs/react-reconciler-reflection.development.js +0.71% 12.75 kB 12.84 kB +0.78% 2.71 kB 2.73 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler-reflection.development.js +0.71% 12.75 kB 12.84 kB +0.78% 2.71 kB 2.73 kB
oss-stable/react-reconciler/cjs/react-reconciler-reflection.development.js +0.71% 12.75 kB 12.84 kB +0.78% 2.71 kB 2.73 kB
oss-experimental/react-reconciler/cjs/react-reconciler-reflection.production.js +0.59% 11.29 kB 11.36 kB +0.65% 2.63 kB 2.65 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler-reflection.production.js +0.59% 11.29 kB 11.36 kB +0.65% 2.63 kB 2.65 kB
oss-stable/react-reconciler/cjs/react-reconciler-reflection.production.js +0.59% 11.29 kB 11.36 kB +0.65% 2.63 kB 2.65 kB

Generated by 🚫 dangerJS against 4aa67d7

@eps1lon eps1lon force-pushed the sebbie/automatic-form-reset-event branch from 16c78d7 to 4aa67d7 Compare January 21, 2026 15:30
@eps1lon eps1lon marked this pull request as ready for review January 21, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: onReset is not called during automatic form reset

2 participants