Skip to content

Conversation

@isqua
Copy link
Contributor

@isqua isqua commented Oct 25, 2025

Guys, in the First Episode we forgot to add the ref property to the forms to reset them after submission. So I'm adding it now. We apologize for the oversight.

However, in newer versions, this works automatically:

Automatically reset forms after action finishes by acdlite · Pull Request #28804 · facebook/react

So if you're using react@19.1.0 or later, you don't need that ref trick anymore.

@isqua isqua merged commit 2b0cca8 into main Oct 25, 2025
@isqua isqua deleted the refactor/forms branch October 25, 2025 12:37
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.

2 participants