We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83ae9e8 commit f39ab6fCopy full SHA for f39ab6f
src/LiveComponent/doc/index.rst
@@ -2741,7 +2741,7 @@ name with ``#[LiveArg]`` in front::
2741
public function incrementProductCount(#[LiveArg] int $product)
2742
{
2743
$this->productCount++;
2744
- $this->lastProduct = $data['product'];
+ $this->lastProductId = $product;
2745
}
2746
2747
And because event listeners are also actions, you can type-hint an argument
0 commit comments