useFormState in tables, or complex forms

I decided to play with the new server components and useFormState. I am building myself the table shown in the image, and the table row code. I want each row to be managed separately, meaning that the user can save, delete or edit the row. Unfortunately, because it's a table, I can't wrap the entire row in the <form> element due to hydration errors. Error: Warning: Expected server HTML to contain a matching <tr> in <form> and so on... Is there any way to get into these fields that I don't know about, or is useFormState intended for simple login/password type forms? By the way, I think it has a lot of limitations, such as what I wrote, or the lack of client-side validation
No description
1 Reply
cement
cement2mo ago
No description