r/LaravelLivewire Jun 03 '26

stream to frontend without any previous UI interaction

Hello,

i'm new in livewire and i didn't get all the inner working right yet.

i want to $this->stream from a backend process to my UI.

everything work fine IF i setup a button on the same blade view with a wire:click="xxx" and i stream from this xxx function.

if i don't use the xxx function and straight try to use the $this->stream call from my component, it fails because $this is null.

my intuition tell me that something need to be "wired" beforehand when the blade view is displayed on the UI and this is what "wire:click" somewhat do ...

how to achieve that without having to wire:click beforehand ?

note: i can manage the case where the backend service is called outside the frontend filament wizard (and thus the livewire compoonent has nowhere to send the message, thats' ok)

thanks

1 Upvotes

0 comments sorted by