filament/tables
v3.2.124
v11.33.2
default
8.3.13
When using ->getStateUsing()
to fill a column with a custom value, the Closure seems to be called 3 times per row!
If this closure contains a custom query, this will lead to triple query execution per row!
The Closure should be executed once on page load
Example Column:
Tables\Columns\TextColumn::make('permission_number')
->label('Permissions')
->badge()
->getStateUsing(function (User $user) {
return $user->permissions()->count();
}),
https://github.com/btxtiger/filament-getstateusing-bug-14852
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too