Skip to main content
New Feature: Document Hooks
New Feature

Document Hooks

Bring custom behavior and content transformations by hooking into Stackbit's document lifecycle methods.

When a content editor makes an altering action on a document, you can make programmatic adjustments to your content based on that action, before the change is stored in the content source.

There are four lifecycle methods, available as configuration properties:

  • onDocumentCreate

  • onDocumentDelete

  • onDocumentPublish

  • onDocumentUpdate