-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Bug: @xstate/store - emits doesn't work #5196
Labels
Comments
@davidkpiano Unfortunately, it doesn't. if it worked, you would see 'DRAWER_OPENED' in the console, logged by the 'emits'. |
Ah, you're overriding the event type. Will fix this soon, but you can workaround this by only passing in the payload, without |
Thanks for the hint! |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
XState version
XState version 5
Description
emits
simply doesn't work. Check the attached stackblitzExpected result
When I send
openDrawer
,drawerOpened
should be emittedActual result
When I send
openDrawer
,drawerOpened
is not emmitedReproduction
https://stackblitz.com/edit/github-w4mpbuok?file=package.json
Additional context
No response
The text was updated successfully, but these errors were encountered: