Recommendation: give example of how to use data from event in an action

Open
#450 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
documentation

Research direction

Start with the referenced example in src/examples/video-player/machine.ts around line 368, then identify the relevant documentation page in this repository for constructing action payloads from event data. Done means the docs include a straightforward equivalent example and explain how the event data is used in the action payload.

Written by the indexing model from the issue text.

Description

I was looking for a way to use data from an event to construct action payload. Could not find a straightforward example in the docs.
After searching for a while I stumbled upon the following example, but I think it's a good idea to add it to the docs.

https://github.com/Devessier/xstatebyexample/blob/main/src/examples/video-player/machine.ts#L368

Dominant language
MDX
Stars
38
Forks
93
Avg merge
19h 31m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statelyai/docs

All issues in statelyai/docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.