before you must listen to the event that you dispatch like #[On('post-created')] and after #[On()] ..... do a function that handles that stuff and for refreshing the component that depends on the situation that u work on I can help u if give us more info about the situation that u work with
Sep 2, 2023
4
Level 1
Livewire 3 refresh component
unfortunately, since I've updated to Livewire 3, I can't use this method for refreshing my component:
protected $listeners = ['refreshComponent' => '$refresh'];
I know that emit has been replaced with dispatch, but I have no idea how to re-render my component. in addition to this, this component is not called in another component and they are placed in a simple blade file.
Please or to participate in this conversation.