Minor Changes
-
#3814
494203b3d
Thanks @Andarist! - TheProvider
fromcreateActorContext(...)
now accepts theoptions={{...}}
prop that takes the same object as the second argument to theuseMachine(machine, options)
hook.These options are no longer passed as the second argument to the
createActorContext(machine)
function:-const SomeContext = createActorContext(someMachine, - { actions: { ... } }); +const SomeContext = createActorContext(someMachine); // ... -<SomeContext.Provider> +<SomeContext.Provider options={{ actions: { ... } }}> // ...