AdminBro's documentation mentions that they provide predefined actions
Edit (record action) - update records in a resource
They also offer a hook called after
. I created a function and assigned it to MyResource.edit.after
. However, the issue is that this function gets executed not only when I save changes after editing but also when I navigate to the Edit page, which is not my desired behavior.
Is there a way for me to make sure this function only runs when I click on the Save Button
on the Edit page?