livewire / volt

Volt is an elegantly crafted functional API for Livewire.
https://livewire.laravel.com/docs/volt
MIT License
327 stars 19 forks source link

[1.x] Fixes sending "name" as property hook argument #37

Closed nunomaduro closed 1 year ago

nunomaduro commented 1 year ago

This pull request fixes an issue on property hook arguments, where the property "name" was been sent as argument:

// before
updated(query: fn (string $name, string $newValue) => /** ... */); ?>
// after
updated(query: fn (string $newValue) => /** ... */); ?>

Note that having $name there does not make sense - as the hook is only fired for the query property as specified.