Skip to content

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

Description

@zzestio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions