Uh oh!
There was an error while loading. Please reload this page.
Use FormDatasubmitter parameter - #29028
Conversation
Comparing: 454fc41...a497924 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
jenseng
commented
May 8, 2024
Looks like flow needs a fix: https://github.com/facebook/flow/blob/b75ba641223ff7fe597d43ca8d4ae76c52efe9f9/lib/bom.js#L628 |
sebmarkbage
commented
May 8, 2024
The two browsers which we support that were the main culprits before was:
Once those are confirmed, we can move to the submitter parameter. |
jenseng
commented
May 8, 2024
@sebmarkbage just curious, is there a test matrix or something to automatically validate that? or is it more of a manual process/judgment call? |
bb3ec87 to
e33216eCompareThis pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
jenseng
commented
Aug 14, 2024
bump |
e33216e to
05f1fc3CompareThe latest updates on your projects. Learn more about Vercel for Git ↗︎
|
05f1fc3 to
bb0ab71CompareThis pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
jenseng
commented
Nov 20, 2024
bump |
bb0ab71 to
b1117e6CompareThis pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
jenseng
commented
Jul 27, 2025
bump 🥲 |
This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated. |
jenseng
commented
Oct 25, 2025
bumpity bump |
jenseng
commented
Oct 30, 2025
Another bug caused by the current partial polyfill: #34944 cc @sebmarkbage |
b1117e6 to
a497924Compare
eps1lon
left a comment
There was a problem hiding this comment.
We think it's fine to remove this. Browsers without support for the second arg can restore the original behavior by polyfilling FormData.
Uh oh!
There was an error while loading. Please reload this page.
DiffTrain build for [65eec42](react@65eec42)
DiffTrain build for [65eec42](react@65eec42)
DiffTrain build for [65eec42](react@65eec42)
DiffTrain build for [65eec42](react@65eec42)
Summary
Fixes#29018
Fixes#34944
Closes#34990
Closes#35354
Rather than continuing to maintain/fix an incomplete polyfill (e.g. #28056, #34990), just pass the
submitterto theFormDataconstructor, since it is now widely available. This ensures that the form data is populated consistently with a native form submission, and lets us remove a whole lot of code. This is a followup to this discussion over two years ago.Elaborating on that, if we're concerned about browsers that don't support it, it's important to note that:
SubmitEvent.submitter, which means the existing approach won't work for them eitherFormDatasubmittercan easily be polyfilled (as canSubmitEvent.submitter) for developers that care about named submit buttons working correctly in old browsersOlder browsers (Safari on old iOS, Samsung TVs), can polyfill
FormDatathe way React did:Note that the above doesn't apply to native submissions but neither did React's behavior. It only applied to React's Form Actions.
How did you test this change?
Updated an existing test to more fully cover
submitterserialization, and ranyarn testandyarn test --prodsuccessfully.