beforeRender does not exist

What seems to be the problem:

BadMethodCallException

Method Ub\Slide\Http\Livewire\SlideList::beforeRender does not exist.

I’m following the livewire screencast “surge”, and wanting to implement the Trait WithBulkActions

$this->beforeRender(function () {
   if ($this->selectAll) $this->selectPageRows();
});

I am implementing the Traits in a separate module

Are you using the latest version of Livewire:

Yes

Do you have any screenshots or code examples:

It looks like the beforeRender method hasn’t been added to a release yet.

The commit to add it can be found here (8 days ago): https://github.com/livewire/livewire/commit/90f12fee988f5084758c514b77eb87c9306fedb7

But the latest release was 15 days ago.

I’m having the same problem any fix? Currently, I’m on Livewire v2.3.6

View mountWithSorting() https://laravel-livewire.com/docs/2.x/traits