PHP Filament optimization

Job ID: 36647961

Budget: $50 – $0 USD

I need someone with knowledge in Filament and Livewire to solve a performance issue when opening a modal within a table. Livewire, upon opening the modal, includes the entire content of the grid in its request, which slows down the request as the number of records displayed in the grid increases.

I've created a repository to reproduce the problem here:
https://github.com/gotzsys/filament

sail artisan migrate
sail db:seed
sail artisan make:filament-user

The problem lies in the modal opening, clicking on the message send icon. Inspect the requests and open the modal with only a few items per page, then try increasing the items in pagination, and you will notice that the size of the request for opening the modal gradually increases, causing the operation to slow down.

I need to optimize the opening of this modal so that the request is faster.
Related categories: PHP JavaScript Software Architecture HTML Laravel