Skip to content

Commit

Permalink
useSelect: silently error (for block zombie children)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jun 11, 2021
1 parent 3468a37 commit 5d5c83d
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 5d5c83d

Please sign in to comment.