Skip to content

docs: add banner to field hooks#15573

Open
zubricks wants to merge 1 commit intomainfrom
docs/hooks-banner-update
Open

docs: add banner to field hooks#15573
zubricks wants to merge 1 commit intomainfrom
docs/hooks-banner-update

Conversation

@zubricks
Copy link
Member

adds banner to clearly state hooks will not run unless doc is actually saved

@zubricks zubricks requested a review from DanRibbens February 10, 2026 15:21
@zubricks zubricks added the area: docs Improvements or additions to documentation label Feb 10, 2026
@zubricks zubricks removed the request for review from DanRibbens February 11, 2026 20:08
notifying them about changes in their membership benefits.

<Banner type="success">
**NOTE:** `beforeChange` and `afterChange` hooks only run after validation has
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currently not true for beforeChange - beforeChange field hooks run before validation.

This is unintuitive and should be changed in payload - see this issue for more context: https://linear.app/figma-trial/issue/PAYL-78/run-beforechange-hooks-after-validation

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

Labels

area: docs Improvements or additions to documentation created-by: Payload team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants