Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Restore server controlled form fields to whatever they should be#26708

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sebmarkbage merged 2 commits intofacebook:mainfromsebmarkbage:formactionsreset
Apr 23, 2023

Conversation

sebmarkbage
Copy link
Collaborator

Fizz can emit whatever it wants for the SSR version of these fields when it's a function action so they might not align with what is in the previous props. Therefore we need to force them to update if we're updating to a non-function where they might be relevant again.

@facebook-github-botfacebook-github-bot added CLA Signed React Core TeamOpened by a member of the React Core Team labelsApr 23, 2023
@react-sizebot
Copy link

react-sizebot commentedApr 23, 2023
edited
Loading

Comparing:36e4cbe...fbcdceb

Critical size changes

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

Name+/-BaseCurrent+/- gzipBase gzipCurrent gzip
oss-stable/react-dom/cjs/react-dom.production.min.js=163.95 kB163.94 kB=51.68 kB51.68 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js+0.19%168.29 kB168.61 kB+0.17%52.94 kB53.03 kB
facebook-www/ReactDOM-prod.classic.js+0.28%568.30 kB569.90 kB+0.19%100.65 kB100.85 kB
facebook-www/ReactDOM-prod.modern.js+0.29%552.03 kB553.63 kB+0.19%97.99 kB98.18 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name+/-BaseCurrent+/- gzipBase gzipCurrent gzip
facebook-www/ReactDOM-prod.modern.js+0.29%552.03 kB553.63 kB+0.19%97.99 kB98.18 kB
facebook-www/ReactDOM-prod.classic.js+0.28%568.30 kB569.90 kB+0.19%100.65 kB100.85 kB
facebook-www/ReactDOMTesting-prod.modern.js+0.28%568.57 kB570.17 kB+0.19%102.09 kB102.28 kB
facebook-www/ReactDOM-profiling.modern.js+0.27%582.45 kB584.05 kB+0.18%102.47 kB102.66 kB
facebook-www/ReactDOMTesting-prod.classic.js+0.27%583.11 kB584.71 kB+0.18%104.37 kB104.55 kB
facebook-www/ReactDOM-profiling.classic.js+0.27%598.79 kB600.38 kB+0.18%105.15 kB105.35 kB
facebook-www/ReactDOM-dev.modern.js+0.21%1,408.00 kB1,410.93 kB+0.17%304.59 kB305.11 kB
facebook-www/ReactDOMTesting-dev.modern.js+0.20%1,426.35 kB1,429.27 kB+0.17%308.98 kB309.52 kB
facebook-www/ReactDOM-dev.classic.js+0.20%1,435.90 kB1,438.82 kB+0.17%310.23 kB310.76 kB
facebook-www/ReactDOMTesting-dev.classic.js+0.20%1,454.24 kB1,457.17 kB+0.17%314.66 kB315.19 kB

Generated by 🚫dangerJS againstfbcdceb

@@ -131,7 +131,6 @@ export function updateInput(
// Submit/reset inputs need the attribute removed completely to avoid
// blank-text buttons.
node.removeAttribute('value');
return;
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

I noticed that this return was problematic because we don't restore thename after setting it to empty.

Fizz can emit whatever for the SSR version of these fields when it's afunction actual so they might not align with what is in the previous props.Therefore we need to force them to update if we're updating to a non-functionwhere they might be relevant again.
@sebmarkbagesebmarkbage merged commit2fa6323 intofacebook:mainApr 23, 2023
EdisonVan pushed a commit to EdisonVan/react that referenced this pull requestApr 15, 2024
…ebook#26708)Fizz can emit whatever it wants for the SSR version of these fields whenit's a function action so they might not align with what is in theprevious props. Therefore we need to force them to update if we'reupdating to a non-function where they might be relevant again.
bigfootjon pushed a commit that referenced this pull requestApr 18, 2024
)Fizz can emit whatever it wants for the SSR version of these fields whenit's a function action so they might not align with what is in theprevious props. Therefore we need to force them to update if we'reupdating to a non-function where they might be relevant again.DiffTrain build for commit2fa6323.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sophiebitssophiebitssophiebits approved these changes

Assignees
No one assigned
Labels
CLA SignedReact Core TeamOpened by a member of the React Core Team
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@sebmarkbage@react-sizebot@sophiebits@facebook-github-bot

[8]ページ先頭

©2009-2025 Movatter.jp