Question: Which statements are more appropriate with the following code snippets? export default function * rootSaga ( ) { yield spawn ( fetchUsers ) yield spawn

Which statements are more appropriate with the following code snippets?
export default function* rootSaga(){
yield spawn(fetchUsers)
yield spawn(fetchProducts)
yield spawn(fetchOrders)
}
export default function* rootSaga(){
yield fork((fetchUsers)
yield fork(fetchProducts)
yield fork(fetchOrders)
}
Select one or more:
a. There is no difference, both work the same
b. With the spawn if one saga failed, the root saga and other sagas will not be killed
c. With the spawn if one saga failed, the root saga and other sagas will also be killed
d. With the fork if one saga failed, the root saga and other sagas will also be killed
Which statements are more appropriate with the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!