Skip to content

How i can reload the datatable? #530

Discussion options

You must be logged in to vote

Hello! @joselrodriguezd,

First, the component that will receive the update is already listening through the 'pg:eventRefresh-default' method. (check in the listeners section).

To update the component on top of the livewire dispatch:

public function updated($name, $value)
{
   $this->emit('pg:eventRefresh-default'); // or emitTo(MyTable::class, 'pg:eventRefresh-default');
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@joselrodriguezd
Comment options

@joselrodriguezd
Comment options

@ashek1412
Comment options

Answer selected by joselrodriguezd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #527 on July 30, 2022 21:03.