Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/capabilities/server/triggers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,7 @@ router.post<string, never, TriggerResponse, OnPostSubmitRequest>(
- Avoid creating recursive triggers that could cause infinite loops or crashes (for example, a comment trigger that creates a comment).
- Always check the event payload to ensure your app is not the source of the event before taking action.
- Review the [EventTypes documentation](../../api/public-api/@devvit/namespaces/EventTypes/) for details on event payloads.

:::caution
Triggers are not guaranteed to deliver only once for a single event. Ensure your app logic is able to handle this case, e.g. checking if content has been recently actioned before taking action again.
:::
4 changes: 4 additions & 0 deletions versioned_docs/version-0.12/capabilities/server/triggers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,7 @@ router.post<string, never, TriggerResponse, OnPostSubmitRequest>(
- Avoid creating recursive triggers that could cause infinite loops or crashes (for example, a comment trigger that creates a comment).
- Always check the event payload to ensure your app is not the source of the event before taking action.
- Review the [EventTypes documentation](../../api/public-api/@devvit/namespaces/EventTypes/) for details on event payloads.

:::caution
Triggers are not guaranteed to deliver only once for a single event. Ensure your app logic is able to handle this case, e.g. checking if content has been recently actioned before taking action again.
:::
Loading