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 a904bd3 commit 30c5454Copy full SHA for 30c5454
src/LiveComponent/README.md
@@ -541,26 +541,6 @@ class RandomNumberComponent
541
}
542
```
543
544
-### Customize Default Action
545
-
546
-The default component action is `__invoke()` by default. You
547
-can customize the method with the `AsLiveComponent` attribute:
548
549
-```php
550
-// src/Components/ProductSearchComponent.php
551
-namespace App\Components;
552
553
-use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
554
555
-#[AsLiveComponent('product_search', defaultAction: 'defaultAction()')]
556
-class ProductSearchComponent
557
-{
558
- public function defaultAction(): void
559
- {
560
- }
561
-}
562
-```
563
564
### Actions and CSRF Protection
565
566
When you trigger an action, a POST request is sent that contains
0 commit comments