Partial Reloads
Inertia Table uses Inertia.js partial reloads so that filtering, sorting, or paginating only refetches the table data, not every other prop on the page. The result is less data transfer and faster response times. You may opt additional props into the partial reload when needed, or globally disable the optimization and always reload everything.
Including Props in the Reload
To include other props in the partial reload, call the reloadProps() method on the Table instance. It accepts a string or an array of strings:
php
public function render()
{
return inertia('Users', [
'users' => Users::make()->reloadProps('roles'),
'roles' => fn () => Role::all(),
]);
}To include every prop in the reload, use the reloadAllProps method:
php
Users::make()->reloadAllProps();Always Reload All Props
To always reload all props when a Table's state changes, call the static alwaysReloadAllProps method on the Table class, typically in your AppServiceProvider:
php
use InertiaUI\Table\Table;
Table::alwaysReloadAllProps();