Major Changes
-
#4531
a5b198340
Thanks @Andarist! - The order of type parameters inActorRef
has been changed from fromActorRef<TEvent, TSnapshot>
toActorRef<TSnapshot, TEvent>
for consistency with other types. -
#4529
43843ea26
Thanks @Andarist! - Thepure()
andchoose()
action creators have been removed, in favor of the more flexibleenqueueActions()
action creator:entry: [ // pure(() => { // return [ // 'action1', // 'action2' // ] // }), enqueueActions(({ enqueue }) => { enqueue('action1'); enqueue('action2'); }) ];
entry: [ // choose([ // { // guard: 'someGuard', // actions: ['action1', 'action2'] // } // ]), enqueueActions(({ enqueue, check }) => { if (check('someGuard')) { enqueue('action1'); enqueue('action2'); } }) ];
Minor Changes
- #4521
355e89627
Thanks @davidkpiano! - The event type of internalafter
events changed fromxstate.after(1000)#some.state.id
toxstate.after.1000.some.state.id
for consistency.