Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when using useFormState #28668

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

rickhanlonii
Copy link
Member

Overview

useFormState has been replaced with useActionState. Warn when it's used.

Also removes the experimental_useFormState warnings.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Mar 28, 2024
@react-sizebot
Copy link

react-sizebot commented Mar 28, 2024

Comparing: 63651c4...9b39940

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.min.js = 177.00 kB 177.00 kB = 55.02 kB 55.02 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 173.10 kB 172.96 kB = 53.96 kB 53.91 kB
facebook-www/ReactDOM-prod.classic.js = 592.91 kB 592.91 kB = 104.01 kB 104.01 kB
facebook-www/ReactDOM-prod.modern.js = 574.60 kB 574.60 kB = 101.03 kB 101.03 kB
test_utils/ReactAllWarnings.js Deleted 65.05 kB 0.00 kB Deleted 16.26 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
test_utils/ReactAllWarnings.js Deleted 65.05 kB 0.00 kB Deleted 16.26 kB 0.00 kB

Generated by 🚫 dangerJS against 9b39940

@rickhanlonii rickhanlonii force-pushed the rh/useformstate-warn branch from 8cd0dff to c1327be Compare March 28, 2024 19:56
@rickhanlonii rickhanlonii force-pushed the rh/useformstate-warn branch from c1327be to 9b39940 Compare March 28, 2024 20:28
@rickhanlonii rickhanlonii merged commit 18812b6 into facebook:main Mar 29, 2024
38 checks passed
@rickhanlonii rickhanlonii deleted the rh/useformstate-warn branch March 29, 2024 17:40
github-actions bot pushed a commit that referenced this pull request Mar 29, 2024
## Overview

useFormState has been replaced with useActionState. Warn when it's used.

Also removes the `experimental_useFormState` warnings.

DiffTrain build for [18812b6](18812b6)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
## Overview

useFormState has been replaced with useActionState. Warn when it's used.

Also removes the `experimental_useFormState` warnings.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
## Overview

useFormState has been replaced with useActionState. Warn when it's used.

Also removes the `experimental_useFormState` warnings.

DiffTrain build for commit 18812b6.
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.

5 participants