F
Filament14mo 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
18 Replies
Matt
MattOP13mo ago
Someone have any idea?
toeknee
toeknee13mo ago
What filament version are you running exactly?
Matt
MattOP13mo ago
3.1.22
ChesterS
ChesterS13mo ago
Do you have any console errors?
SLy
SLy13mo ago
Have same problem.
Phil
Phil11mo ago
Any news? I have the same problem. Running on v3.2.34
Liam
Liam8mo ago
I have the same problem @Dan Harrin, is this intended behaviour or?
Dan Harrin
Dan Harrin8mo ago
Never seen this before as no-one has opened a bug report properly on GitHub with a minimal reproduction repository.
Liam
Liam8mo ago
Alright will do this now
toeknee
toeknee8mo ago
Also @Liam please do not tag people as per #✅┊rules
Liam
Liam8mo ago
Sorry wasn't aware of the rule For some reason I am unable to reproduce it in the issue project..
Dan Harrin
Dan Harrin8mo ago
which is exactly why i wont investigate issues without a reproduction 😅
Liam
Liam8mo 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.
Dennis Koch
Dennis Koch6mo ago
That behaviour certainly looks unexpected. Can you share some code
toeknee
toeknee6mo ago
I'd also ask you both to upgrade to the latest version
Dennis Koch
Dennis Koch6mo ago
Yeah, because nobody reads the f*cking rules that are posted all over the server ... Sorry, had to vent ... 🙈
acroninja
acroninja2mo ago
No idea how many terms and conditions of use I have accepted without ever reading them, probably tens of thousands. Can't blame people, we're all bombarded with rules, regulations, terms and conditions every day. It's impossible to keep track.
3rgo
3rgo3d ago
Had the exact same behaviour, updated to latest version (v3.2.132), nothing changed, but the fix from Liam fixed my bug. Cheers bro ! (Sorry for the grave digging here, but could still be useful for others)

Did you find this page helpful?