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

chore(deps): react beta 20240430 #50

Merged
merged 9 commits into from
May 1, 2024
Merged

chore(deps): react beta 20240430 #50

merged 9 commits into from
May 1, 2024

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Apr 26, 2024

Let's wait for


It looks like input is cleared now after formAction, which wasn't the case before.


This is actually mentioned in the changelog https://react.dev/blog/2024/04/25/react-19

Forms: <form> elements now support passing functions to the action and formAction props. Passing functions to the action props use Actions by default and reset the form automatically after submission.

When a <form> Action succeeds, React will automatically reset the form for uncontrolled components. If you need to reset the <form> manually, you can call the new requestFormReset React DOM API.

what's requestFormReset?

See also

So, it's not possible to not requestFormRequest for uncontrolled input except making it controlled?

@hi-ogawa hi-ogawa marked this pull request as ready for review May 1, 2024 07:27
@hi-ogawa hi-ogawa changed the title chore(deps): react beta chore(deps): react beta 20240430 May 1, 2024
@hi-ogawa hi-ogawa merged commit 41874ad into main May 1, 2024
1 check passed
@hi-ogawa hi-ogawa deleted the chore-react-beta branch May 1, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant