Can I mark events internal to a machine? I am using a callback actor which uses sendBack to the parent machine, but to handle the events in the machine I need to add the events in the setup events type. This is fine, but will also expose these events as being valid events to be send to the machine by an outside actor. Maybe an additional type internalEvents on the setup type?
#mark events internal
1 messages · Page 1 of 1 (latest)
I think this is a very good idea. Can you add it as an issue here? https://github.com/statelyai/xstate/issues/new
GitHub
Created this issue on request of David following the question on discord Feature request/Typescript I am using a callback actor which uses sendBack to the parent machine, but to handle the events i...