wire-elements / wire-spy

WireSpy—a sleek new debug bar for Livewire
https://wire-elements.dev/blog/announcing-wirespy-a-sleek-new-debug-bar-for-livewire
MIT License
301 stars 8 forks source link

Javascript events not collected in the events tab #21

Closed eguiluz closed 4 days ago

eguiluz commented 4 days ago

Events emitted with javascript from blade views are not recorded in the events tab.

<script type="module">
    document.addEventListener('livewire:initialized', () => {
        Livewire.dispatch('eventNameHere', eventDataHere);
    });
</script>

The event eventNameHere (which is picked up in the component correctly with #[On('eventNameHere')] is not registered by wire-spy.

PhiloNL commented 4 days ago

Hi @eguiluz, At the moment only server-side triggered events are recorded. I'll add this to the feature request list :)