Skip to content

Commit

Permalink
useSelect: silently error (for block zombie children) (#32088)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and youknowriad committed Jun 14, 2021
1 parent 0ac6a89 commit c21f354
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/data/src/components/use-select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,11 @@ export default function useSelect( _mapSelect, deps ) {
errorMessage += `\nThe error may be correlated with this previous error:\n`;
errorMessage += `${ latestMapOutputError.current.stack }\n\n`;
errorMessage += 'Original stack trace:';

throw new Error( errorMessage );
} else {
// eslint-disable-next-line no-console
console.error( errorMessage );
}

// eslint-disable-next-line no-console
console.error( errorMessage );
mapOutput = latestMapOutput.current;
}
}

Expand Down

0 comments on commit c21f354

Please sign in to comment.