F
Filament6mo ago
Matt

Refresh repeater items after save form

Hello, I have been working with Repeater. In this component I have File and Checkbox field. After save form everything is save in database but on front page I need refresh to see saved items. What should I use to refresh repeater items after save form? https://hastebin.skyra.pw/awuyegoced.rust
13 Replies
Matt
Matt6mo ago
Someone have any idea?
toeknee
toeknee6mo ago
What filament version are you running exactly?
Matt
Matt6mo ago
3.1.22
ChesterS
ChesterS6mo ago
Do you have any console errors?
SLy
SLy5mo ago
Have same problem.
Phil
Phil4mo ago
Any news? I have the same problem. Running on v3.2.34
Liam
Liam2w ago
I have the same problem @Dan Harrin, is this intended behaviour or?
Dan Harrin
Dan Harrin2w ago
Never seen this before as no-one has opened a bug report properly on GitHub with a minimal reproduction repository.
Liam
Liam2w ago
Alright will do this now
toeknee
toeknee2w ago
Also @Liam please do not tag people as per #✅┊rules
Liam
Liam2w ago
Sorry wasn't aware of the rule For some reason I am unable to reproduce it in the issue project..
Dan Harrin
Dan Harrin2w ago
which is exactly why i wont investigate issues without a reproduction 😅
Liam
Liam2w ago
Well, took me a while but I identified the issue... When you always eager load the relationship on a model it causes this issue:
/**
* The relationships that should always be loaded.
*
* @var array
*/
protected $with = ['influencerAccounts'];
/**
* The relationships that should always be loaded.
*
* @var array
*/
protected $with = ['influencerAccounts'];
When I removed this it worked perfectly again.