diff --git a/composer.json b/composer.json index ebcb430..c5fcfcd 100644 --- a/composer.json +++ b/composer.json @@ -16,8 +16,8 @@ } ], "require": { - "php": "^8.0|^8.1|^8.2", - "livewire/livewire": "^2.11", + "php": "^8.1|^8.2", + "livewire/livewire": "^3.0", "spatie/laravel-package-tools": "^1.0.0" }, "require-dev": { diff --git a/src/Http/Livewire/AdReportComponent.php b/src/Http/Livewire/AdReportComponent.php index 2c885a9..2780ab4 100644 --- a/src/Http/Livewire/AdReportComponent.php +++ b/src/Http/Livewire/AdReportComponent.php @@ -72,7 +72,7 @@ public function calculateClicksReport(){ $this->clicksPerAd = collect($this->clicksPerAd)->sortByDesc('clicks')->values()->all(); - $this->emit('renderChart'); + $this->dispatch('renderChart'); }