Skip to content

Add before hooks #982

Description

@Flo0807

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-discussionAn issue that still needs speficiation.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions