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
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·
-
Difficulty 2/5 Half a day Newbie friendliness 78/100
vercel/vercel-plugin#199 ·