Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support typed events in hook send() #235

Merged
merged 2 commits into from
Jan 14, 2025
Merged

Support typed events in hook send() #235

merged 2 commits into from
Jan 14, 2025

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');

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