xstate-tools icon indicating copy to clipboard operation
xstate-tools copied to clipboard

Ensure a service has an id when it needs one

Open erikras opened this issue 3 years ago • 0 comments

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!! 🙏

erikras avatar Jan 17 '22 12:01 erikras