F
Filament2mo ago
Mike

How to automatically update repeatableEntry after form save

In v3, after saving a form, repeatableEntry would automatically update itself with the new data, this is not the case in v4, how do I do it.
Solution:
$this->record->load('message'); // reloads the message relationship from the database
$this->refresh(); // refreshes the Livewire component to show the updated data
$this->record->load('message'); // reloads the message relationship from the database
$this->refresh(); // refreshes the Livewire component to show the updated data
...
Jump to solution
4 Replies
Dennis Koch
Dennis Koch2mo ago
Is it a relation?
Mike
MikeOP2mo ago
No, Say a repeatable entry is displaying messages, when a new message is created in v3, repeatable entry would automatically update, but after updating to v4, this is not happening. Thank you for your response
Solution
Mike
Mike2mo ago
$this->record->load('message'); // reloads the message relationship from the database
$this->refresh(); // refreshes the Livewire component to show the updated data
$this->record->load('message'); // reloads the message relationship from the database
$this->refresh(); // refreshes the Livewire component to show the updated data
Mike
MikeOP2mo ago
My bad, it is a relation, but I have solved it now

Did you find this page helpful?