Skip to content

Support typed events in hook send()#235

Merged
matthewp merged 2 commits intomainfrom
send-hooks
Jan 14, 2025
Merged

Support typed events in hook send()#235
matthewp merged 2 commits intomainfrom
send-hooks

Conversation

@matthewp
Copy link
Owner

This adds the same typed event support for send() from hooks, for ex in React:

const [state, send] = useMachine(machine);

send('this-is-typed');

@changeset-bot
Copy link

changeset-bot bot commented Jan 14, 2025

🦋 Changeset detected

Latest commit: 8de5bb4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
robot-hooks Minor
haunted-robot Minor
preact-robot Minor
react-robot Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@matthewp matthewp merged commit efbddbe into main Jan 14, 2025
2 checks passed
@matthewp matthewp deleted the send-hooks branch January 14, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant