Skip to content

v1.1.0: Performance Boost & Server-Side Rendering

Choose a tag to compare

@restu-lomboe restu-lomboe released this 25 Aug 07:17
· 76 commits to master since this release

Release v1.1.0

✨ New Features

  • ⚡ Server-side rendering - Handle large datasets efficiently
  • 🚀 Performance improvements - Up to 40% faster with Livewire Computed Properties
  • 📄 Dynamic pagination - Added simplePaginate method option
  • 🔢 Enhanced number column - no column now sortable with proper numbering
  • 🔍 Query scope support - Apply custom model scopes for filtered datasets

🔧 Configuration

Pagination Options

// Global config
'default_pagination' => 'simplePaginate', // or 'paginate'

// Per component
'pagination' => 'simplePaginate'

Number Column Usage

'columns' => [
    'no' => '#',        // Auto-numbered, sortable
    'name' => 'Name',
    'email' => 'Email'
]

Query Scope Usage

// In your model
public function scopeActive($query) {
    return $query->where('status', 'active');
}

// In component
'model' => User::class,
'scope' => 'active'  // Apply the scope
# Update existing
composer update developerawam/livewire-datatable

# clear cache
php artisan optimize:clear

🔄 Breaking Changes

None - fully backward compatible