pelmer
Trigger state format when reciving new state from afterStateUpdated with $set from another field?
Yes, that is what I am doing now. I was hoping there was a better way to handle this in the field that receives the updated state. I think the responsibility of formatting the state should be on the field, not the code that updates the state of the field.
Thank you anyway ❤️
8 replies
Trigger state format when reciving new state from afterStateUpdated with $set from another field?
Yes, that is what I was doing. But that means duplicating the formatting code. I also think each field should be responsible for their own formatting. I think it would be a good improvement if
formatStateUsing
or afterStateUpdate
was triggered in this case. Or at least some event or something that you can hook into.8 replies
Wrong foregin key in AssociateAction
Submitted a PR to fix this now: https://github.com/filamentphp/filament/pull/14145
6 replies