Skip to content

Commit

Permalink
Do not log a warning when the errorBoundaryClass is provided (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbosland committed Jun 16, 2023
1 parent f19beae commit 017b7f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/single-spa-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ function mount(opts, props) {
if (
!opts.suppressComponentDidCatchWarning &&
atLeastReact16(opts.React) &&
!opts.errorBoundary
!opts.errorBoundary &&
!opts.errorBoundaryClass
) {
if (!opts.rootComponent.prototype) {
console.warn(
Expand Down

0 comments on commit 017b7f4

Please sign in to comment.