Adding this trait to a Livewire component will automatically trigger methods when nested values get updated.
For example, by default, if you use wire:model="foo.bar"
on a Livewire component, this will only trigger the updatingFoo()
and updatedFoo()
methods on the component if they exist.
With this trait, it will also trigger the updatingFooBar()
and updatedFooBar()
methods.
It's not clear why this is, since Livewire and so know how to do that.