How can i keep this player running also when switch panels?

->renderHook(
PanelsRenderHook::USER_MENU_BEFORE,
fn(): string => Blade::render('@livewire(\'admin.player\')'),
)
->renderHook(
PanelsRenderHook::USER_MENU_BEFORE,
fn(): string => Blade::render('@livewire(\'admin.player\')'),
)
No description
5 Replies
awcodes
awcodes2w ago
Laravel
Navigate | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
CasBizz
CasBizz2w ago
But that doesnot work across different panels (i didn't get that to work, because the player should be outside livewire, but no idea where to place it), And no need in a panel , because you can use spa inside one panel as far as i know. 😚
toeknee
toeknee2w ago
You can't keep it between panels at all since they trigger a page reload
CasBizz
CasBizz2w ago
Do the panels use the same layout page, then it would be possible
toeknee
toeknee2w ago
Not necessarily because the whole layout can be tweaked per panel. I’d suggest you make a PR if you think it’s possible adding the support