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.
6 Replies
This is what the Infolist for the relation looks like
This action without any logic causes the problem
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.
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 🤔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.
I'm not using Infolists that much, that's why I personally probably never had that issue