Anyone have a solution to this?
Sep 19, 2024
2
Level 1
lazy load on full page hides named slot
Hi everyone I'm working on a full page component project, It's loading lazy.
In my app.blade.php file I have a slot named
@if (isset($header))
<header class="pt-4">
<div>
{{ $header }}
</div>
</header>
@endif
<!-- Page Content -->
<main >
{{ $slot }}
</main>
my route
Route::get('product', ShowProduct::class)->name('product.index')->lazy();
in my livewire component
public $pageTitle
public $componentName;
public function mount()
{
$this->pageTitle = 'Product listing';
$this->componentName = auth()->user()->name;
}
in the component view
<x-slot name="header">
<h4><strong class="pb-1 text-info">{{ $componentName }}</strong> | {{ $pageTitle }}</h4>
</x-slot>
I have the problem in the component view that is not showing when I use Lazy, but if I remove it, it will work for me. I hope you can help me. I am using Livewire 3
Please or to participate in this conversation.