Hundreds of founders, makers and marketers are part of The Digital Product Playbook.

This month we're giving away $700 of DigitalOcean credit, 1 year of SnapShooter along with a whole bunch of DigitalOcean goodies!

Join for free today at

Manually Refreshing a Livewire Component

Livewire provides a clean API for automatically polling and refreshing a component, but what if you want to manually refresh a component?

Published 4 months ago | Updated 4 months ago
Laravel Livewire

Livewire's polling API is great for periodically refreshing your component or invoking an action, but one of the more quietly documented features is the ability to manually refresh a component using a "magic" action.

Here's how:

    <button wire:click="$refresh">Reload Component</button>

And that is it! The "magic" $refresh action can be used, anywhere an action can, in your component. Livewire will pick up the action name and simply re-render the component.