© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
2 replies
Bruno Silva

Repeater `saveRelationshipsUsing(null)` Not Hydrating Data Correctly

Repeater example:
Repeater::make('spot_types')
  ->relationship('spotTypes')
  ->saveRelationshipsUsing(null)
  ->dehydrated()
Repeater::make('spot_types')
  ->relationship('spotTypes')
  ->saveRelationshipsUsing(null)
  ->dehydrated()


Custom Action overriding
handleRecordUpdate
handleRecordUpdate
in the EditPage:
public function handle(array $data, Model $record): Model
{
  $record->update($data);
  $record->spotTypes()->sync($data['spot_types']);

  return $record;
}
public function handle(array $data, Model $record): Model
{
  $record->update($data);
  $record->spotTypes()->sync($data['spot_types']);

  return $record;
}


When I update a record using that custom Action, the record and its relationships are saved correctly in the database. However, after Filament's success notification, the Repeater displays old data. Refreshing the page shows the correct data. This issue only occurs with saveRelationshipsUsing(null).

Is this a bug or expected? Is there a workaround?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Repeater Ignore Null
FilamentFFilament / ❓┊help
3y ago
Repeater relationship returns null
FilamentFFilament / ❓┊help
2y ago
Refreshing repeater data
FilamentFFilament / ❓┊help
6mo ago
Accessing repeater data
FilamentFFilament / ❓┊help
3y ago