When change page I need to refresh #1053
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Are you using v1 or v2? If you declare the variables as public, and set them when you include the component, does it work as expected? Does it update when you sort the page (for example)? |
Beta Was this translation helpful? Give feedback.
-
I am facing the exact problem even after setting the variable as public <livewire:user-table :users="$users" /> And then in the component public $users; Column::make('Name', 'authenticatable_id')
->sortable()
->format(function ($value) {
return isset($this->users[$value]) ? $this->users[$value] : '-';
}), This returns the name properly first time but then shows |
Beta Was this translation helpful? Give feedback.
Are you using v1 or v2?
If you declare the variables as public, and set them when you include the component, does it work as expected?
Does it update when you sort the page (for example)?