Skip to content

Commit 54485f1

Browse files
committed
1.0.1
1 parent c8b4006 commit 54485f1

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

commonjs/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,5 @@ function asyncBootstrapper(app) {
1919
return true;
2020
};
2121

22-
return (0, _reactTreeWalker2.default)(app, visitor, {})
23-
// Swallow errors.
24-
.catch(function () {
25-
return undefined;
26-
});
22+
return (0, _reactTreeWalker2.default)(app, visitor, {});
2723
}

umd/react-async-bootstrapper.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ function reactTreeWalker(element, visitor, context) {
243243
return element.props && element.props.children ? element.props.children : undefined;
244244
}, visitor(element, null, context), context, true);
245245
}
246+
}).catch(function (err) {
247+
// We don't want errors to be swallowed!
248+
console.error('Error walking your react tree');
249+
console.error(err);
246250
});
247251
}
248252

@@ -272,11 +276,7 @@ function asyncBootstrapper(app) {
272276
return true;
273277
};
274278

275-
return (0, _reactTreeWalker2.default)(app, visitor, {})
276-
// Swallow errors.
277-
.catch(function () {
278-
return undefined;
279-
});
279+
return (0, _reactTreeWalker2.default)(app, visitor, {});
280280
}
281281

282282
/***/ }),

umd/react-async-bootstrapper.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)