Closed masterix21 closed 3 years ago
Hey @masterix21. Thank you for bringing this to your attention.
I've added a test that verifies this example without using Livewire, and this example only runs once. Maybe the problem with this behavior is not in this package?
I also have a few questions:
Hi, I tried to reproduce the problem on the second livewire version. But with the code that was recommended.
Route::get('dashboard', \App\Http\Livewire\Counter::class)->name('home')
->breadcrumbs(fn (Trail $trail) => $trail->push("Dashboard", route("home")) && \Illuminate\Support\Facades\Log::debug('Dashboard pushed'));
This code also works only once.
Using Livewire 2, yes, it works once.
Hey. That's great, then no problem.
Using the following code in the
web.php
file:You'll get the follow logs output:
It means that the breadcrumb pushed three times, and the title will be wrong.