Custom Triggers
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
Research direction
Start by reviewing the TypeScript trigger API entry points shown in the issue: Devvit.emitCustomEvent and Devvit.addTrigger. Clarify the event contract, cross-app delivery behavior, and payload requirements with maintainers; done should mean the custom-trigger design and its expected behavior are agreed.
Written by the indexing model from the issue text.
Description
It could be useful to be able to emit custom triggers. This could allow one app to process some data and emit a trigger with that data for other apps to act on. It could also be used within the same app, but that doesn't seem as useful. I imagine it something like this:
function myFunc() {
{process some data}
const id: str = 'MyEventID';
const data: any = ...;
Devvit.emitCustomEvent(id,data);
}
Devvit.addTrigger({
event: 'CustomEvent',
onEvent: (event,context) => {
if (event.id !== 'MyEventID') {
return;
}
const data = event.data;
}
});
- Dominant language
- TypeScript
- Stars
- 210
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from reddit/devvit
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
requestExpandedMode(event, "game") does not switch inline webview to the game entrypoint in Playtest Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100