Major Changes
-
#4127
cdaddc266
Thanks @Andarist! - IDs for delayed events are no longer derived from event types so this won't work automatically:entry: raise({ type: 'TIMER' }, { delay: 200 }); exit: cancel('TIMER');
Please use explicit IDs:
entry: raise({ type: 'TIMER' }, { delay: 200, id: 'myTimer' }); exit: cancel('myTimer');
-
#4127
cdaddc266
Thanks @Andarist! - All builtin action creators (assign
,sendTo
, etc) are now returning functions. They exact shape of those is considered an implementation detail of XState and users are meant to only pass around the returned values.