Problems with SoftDeletes in Infolist with actions

Loading Entries with soft deleted relation works initially just fine but looses his state after clicking on an action. I dont know exactly what happens after i click on an action but it feels like its reloading the record without using the "getEloquentQuery" method and using my logic in there. After clicking on the action all the information of that relation are gone. The logic of the action doesnt get triggered just the opening of the modal is enought to loose all of my state.
No description
6 Replies
muesker
mueskerOP3mo ago
This is what the Infolist for the relation looks like
No description
muesker
mueskerOP3mo ago
This action without any logic causes the problem
No description
muesker
mueskerOP3mo ago
Its kind of the same problem when i use the strict mode and have relations loaded. After i click on an action all relations are dropped and i get the error for attempting lazy loading.
No description
No description
No description
Dennis Koch
Dennis Koch3mo ago
I guess the issue is the infolist in the action. Filament loads the entry again, but for some reason doesn't apply the with from the global query 🤔
muesker
mueskerOP3mo ago
Yeah thats what i thought. Kinda weird that im the only one with that problem. Is it the first time this problem is coming up? I tried to look for issues but couldnt find any. I guess there is no way to fix it on my end. I can tell you that on rerender the state of the record is without some relations. In this case it still holds onto the "reasons" relation but nothing else.
Dennis Koch
Dennis Koch3mo ago
I'm not using Infolists that much, that's why I personally probably never had that issue
Want results from more Discord servers?
Add your server