Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const addJobAssign = assign((ctx, e) => {
const { song } = e
// feeding in inital context for the child actor
// notice it's not `machine.withConfig()`
song.actor = spawn( WorkerMachine.withContext(song) )
ctx.songs.push(song)
return ctx
})
movies: () => spawn(moviesMachine),
}),