You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')]
publicarray$formValues = [];
publicfunctionformValuesUpdated(): void
{
// never called
}
}
Is there a better way to hook for this?
The text was updated successfully, but these errors were encountered:
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 🤔Is there a better way to hook for this?
The text was updated successfully, but these errors were encountered: