Observer causing update form to get stuck
Any idea what's causing it?
This is my observer
Solution:Jump to solution
If you're saving the same model that the observer is using you'll get a loop. Try to change $startRonde->save() to $startRonde->saveQuietly() so that it doesnt trigger events
5 Replies
I refactored your code with return early. Maybe you can find your problem more easily:
The observer does work though, can see the change in the database. But the Filament Edit Form gets stuck on loading forever after clicking save
Solution
If you're saving the same model that the observer is using you'll get a loop. Try to change $startRonde->save() to $startRonde->saveQuietly() so that it doesnt trigger events
Ah alright, thanks a lot
Works brother, thanks a ton. Makes total sense
Thanks buddy!