Open
Description
I am using ComponentWithFormTrait
and need to save submitted values (draft mode until full form submit).
So I though that overriding $formValues
and adding a hook will work. But that's not the case 🤔
class Component {
// ...
#[LiveProp(writable: true, fieldName: 'getFormName()', onUpdated: 'formValuesUpdated')]
public array $formValues = [];
public function formValuesUpdated(): void
{
// never called
}
}
Is there a better way to hook for this?