Which fix removes the bug?
if (config.retry.count) {
schedule(config.retry);
}
- Use optional chaining
- Wrap it in a try block
- Compare count with 0
- Default config to null
Reading
Play Problem Solving ▸
.count on a missing retry throws; config.retry?.count short-circuits instead.