defstudio / vite-livewire-plugin

Laravel Vite handler for Livewire components
MIT License
274 stars 8 forks source link

Support hot reload in layout x-slot blocks? #132

Open gsxdsm opened 6 months ago

gsxdsm commented 6 months ago

When I have a livewire full page component and I reference named slots, changes to the contents of the slot don't get hot reloaded properly.

fabio-ivona commented 6 months ago

Hi, could you set up a simple project in order to recreate your issue?

gsxdsm commented 6 months ago

Here's an example project: https://github.com/gsxdsm/livewire-vite-test

See: https://github.com/gsxdsm/livewire-vite-test/blob/main/resources/views/livewire/test.blade.php

When the main contents are updated, the hot reload works correctly. However when the header slot is updated, it does not hot reload (I guess because that's technically not a livewire component?)

fabio-ivona commented 5 months ago

yep, I think it is due to the fact that it is not a Livewire component

we'll investigate on that