$record is null inside hidden()

$table->columns([
  TextColumn::make('url')
    ->url(fn($record) => $record->url) // working
    ->hidden(fn($record) => $record->url), // null
]),


Is this expected behavior? Or I am doing something wrong?
Was this page helpful?