Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sitecore-jss-react] ErrorBoundary - Show error message with failed component name in preview mode #1794

Merged
merged 6 commits into from
May 14, 2024

Conversation

yavorsk
Copy link
Contributor

@yavorsk yavorsk commented May 13, 2024

Description / Motivation

This PR is a follow up to #1786 and updates the error message display logic so that component name is being shown in the error message in preview mode (in addition to edit mode); it also updates the logging logic and now failed component name and rendering uid are being logged in the console when in edit/preview/development mode.

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@yavorsk yavorsk requested a review from art-alexeyenko May 13, 2024 09:36
…elopment mode; remove console.logs in unit tests
@yavorsk yavorsk requested a review from addy-pathania May 14, 2024 07:44
@yavorsk yavorsk requested a review from illiakovalenko May 14, 2024 11:33
Copy link
Contributor

@addy-pathania addy-pathania left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@addy-pathania addy-pathania merged commit dd9bf52 into dev May 14, 2024
1 check passed
@addy-pathania addy-pathania deleted the feature/jss-100-errorboundary-preview-mode branch May 14, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants