backpex icon indicating copy to clipboard operation
backpex copied to clipboard

Add before hooks

Open Flo0807 opened this issue 10 months ago • 0 comments

Backpex provides hooks that are called after changes are persisted to the database: https://hexdocs.pm/backpex/hooks.html

We could also add Hooks that are called before changes are persisted.

  • on_item_creating
  • on_item_deleting
  • on_item_updating

These hooks might be used to add additional changes.

We need to discuss what parameters these hooks receive, what they return and what Backpex does with the result.

Flo0807 avatar Mar 20 '25 11:03 Flo0807