Livewire ::beforeRender() not initializing inside trait

I’m following up with Livewire Datatables.

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

It says,

How to fix the problem?

Is your Technology Component extends Livewire\Component?

1 Like

Yes, it does exist. I have solved the problem.

It was due to version changes. in v2.5.6 we have to use traits differently.

Now working great. Thanks for your help.

Aha! Good to know, No problem mate.

Happy coding :smiley: