xstate-tools
xstate-tools copied to clipboard
Ensure a service has an id when it needs one
Sometimes I do:
send('EVENT', { to: 'myService' })
and I've invoked myService without an id.
invoke: { src: 'myService' }
Then it takes me a few hours to figure out why my event is not arriving.
If there's a way to notice that you're sending an event to a service, but that there is no service in the file that matches that id, that would be amazing!! 🙏