Server Action in a loop can't pass data #631
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
good first issue
Good for newcomers
Is your feature request related to a problem? Please describe.
When you do a loop
booking.id will throw an error because it does not exist on the client and the server bookind.id will be undefined.
The very unique way to solve this is injecting a data attr and use dataset to retreive the data on the server.
This is working and is a valid approach, but maybe we could document this or give a better way to handle this situation.
The text was updated successfully, but these errors were encountered: