Not supplying a config level context and using assign should be an error #1227
-
I just got bit by this, probably spent approx 7h debugging everything under the sun I could think of. Just didn't think to check I had set an initial context for the machine in the config (because my initial context was an empty object). I guess I had assumed that xstate would create an empty context object if I tried to use It feels like this should be an error instead of xstate just silently failing to assign new values to the context object. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you move this to issues so we can fix it? |
Beta Was this translation helpful? Give feedback.
Can you move this to issues so we can fix it?