```php ToggleIconColumn::make('favorite') ->onIcon('heroicon-s-star') ->offIcon('heroicon-o-star') ->updateStateUsing(fn (ResourceModel $record) => $record->isFavorite() ? $record->unsetFavorite() : $record->setFavorite()) ->getStateUsing(fn (ResourceModel $record) => $record->isFavorite()) ``` The code updates the database properly but does not show the change in the table until the page is refreshed. (favorite is determined from a resource_user pivot table)