ryangjchandler
$wire.$refresh() doesn't work
If you can see the data updating on the server-side, then it'll likely be one of the following things:
* Missing
wire:key
attributes on elements inside of a loop.
* A wire:ignore
attribute on a parent element, which prevents the DOM being updated.203 replies
$wire.$refresh() doesn't work
I think there's a gap in your Livewire knowledge here.
Calling a method inside of a Livewire component implicitly re-renders the component, since you're making a trip to the server and Livewire is re-rendering your component and then updating the DOM from the response.
Calling
$this->refresh()
on the server doesn't do anything, because you're already in the process of re-rendering things anyway.
The only case where a re-render is skipped on the server is if you're explicitly calling $this->skipRender()
inside of the Livewire component.203 replies