![]() ![]() In fact, it's possible that this might obscure certain failures from the developer's viewpoint and cause problems further down the road. Obviously, this does not relieve us from our responsibility as developers to still handle errors as they arise. ![]() Spawn is an effect that will disconnect your child saga from its parent, allowing it to fail without crashing its parent. In practice, these implementations aren't terribly practical because your rootSaga will terminate on the first error in any individual child effect or saga and crash your whole app! Ajax requests in particular would put your app at the mercy of the status of any endpoints your app makes requests to. In the above code, since fork effects are non-blocking, they will always win the race immediately. On the other hand, fork effects in a race effect is most likely a bug. The fork effect always wins the race immediately. ![]()
0 Comments
Leave a Reply. |