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-nextjs] Reject SDK promise when init was rejected #1712

Merged
merged 4 commits into from
Jan 12, 2024

Conversation

art-alexeyenko
Copy link
Contributor

@art-alexeyenko art-alexeyenko commented Jan 10, 2024

Description / Motivation

Events SDK should not initialize in dev environment or server context. This PR ensures Events SDK promise is not pending in such situations and will reject instead. Context logic has been made to handle initialization rejects.

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)

@art-alexeyenko art-alexeyenko requested a review from a team January 10, 2024 22:47
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

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

I assume CHANGELOG is coming, otherwise looks good to me 👍

@art-alexeyenko art-alexeyenko merged commit 4e03c28 into dev Jan 12, 2024
1 check passed
@art-alexeyenko art-alexeyenko deleted the bug/jss-1396-handle-missing-sdk branch January 12, 2024 22:17
addy-pathania pushed a commit that referenced this pull request Jan 17, 2024
[sitecore-jss-nextjs] Reject getSDK promise when SDK init was rejected
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.

2 participants