Working with arrays
Any time a user interacts with a component representing multiples of something, chances are those things are stored in an array.
Magewire provides a special syntax for working individual items within arrays. It even allows working with nested arrays.
For example, lets assume the following component with an array property:
Binding to nested array keys
Targeting nested array keys is done using the dot notation:
Array lifecycle hook methods
Lifecycle hook callback methods for nested properties are defined using camel case.
Continuing the above example, the matching method name would be