F
Filament12mo 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
16 Replies
Matt
MattOP12mo ago
Someone have any idea?
toeknee
toeknee12mo ago
What filament version are you running exactly?
Matt
MattOP12mo ago
3.1.22
ChesterS
ChesterS12mo ago
Do you have any console errors?
SLy
SLy11mo ago
Have same problem.
Phil
Phil10mo ago
Any news? I have the same problem. Running on v3.2.34
Liam
Liam6mo ago
I have the same problem @Dan Harrin, is this intended behaviour or?
Dan Harrin
Dan Harrin6mo ago
Never seen this before as no-one has opened a bug report properly on GitHub with a minimal reproduction repository.
Liam
Liam6mo ago
Alright will do this now
toeknee
toeknee6mo ago
Also @Liam please do not tag people as per #✅┊rules
Liam
Liam6mo ago
Sorry wasn't aware of the rule For some reason I am unable to reproduce it in the issue project..
Dan Harrin
Dan Harrin6mo ago
which is exactly why i wont investigate issues without a reproduction 😅
Liam
Liam6mo 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 Koch4mo ago
That behaviour certainly looks unexpected. Can you share some code
toeknee
toeknee4mo ago
I'd also ask you both to upgrade to the latest version
Dennis Koch
Dennis Koch4mo ago
Yeah, because nobody reads the f*cking rules that are posted all over the server ... Sorry, had to vent ... 🙈
Want results from more Discord servers?
Add your server