patterns! I'm not sure if I do correct pattern.
When I have a form or action I have hx-trigger="..." hx-swap="outerHTML", hx-get="..." hx-target="..."
the hx-target limit what I can return so I my view when there is an error the hx-target is going to replace the form. However when the form is correct then the hx-target needs to be for example the table to update that table. Or a row in a table.
Currently I put triggers on the table hx-trigger="reload from:body" hx-get="..." and in the view when the form is success I send a response with reload that table
My question: is there a better pattern?