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

[angular][xmcloud] Do not initialize CloudSDK if we are in edit or preview mode #1961

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

yavorsk
Copy link
Contributor

@yavorsk yavorsk commented Oct 30, 2024

Description / Motivation

This PR modifies cloudsk init component to not initialize CloudSDK in the browser if we are in edit or preview mode or route data is missing.

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)

Copy link
Contributor

@illiakovalenko illiakovalenko left a comment

Choose a reason for hiding this comment

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

Looks good. Only one missing thing is upgrade guide, you need to update it to extend a bit the example

@illiakovalenko
Copy link
Contributor

@yavorsk Another thing that I observed, that when I navigate using client side routing - cloudsdk is initialized on each route change, while it should be initialized once, on the first visit. Also I don't know if it's fine for cloudsdk if "init" will be called multiple times

Copy link
Contributor

@illiakovalenko illiakovalenko left a comment

Choose a reason for hiding this comment

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

See my comment regarding client side route navigation

Copy link
Contributor

@illiakovalenko illiakovalenko left a comment

Choose a reason for hiding this comment

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

👍

@illiakovalenko illiakovalenko merged commit 531c82a into dev Oct 31, 2024
1 check passed
@illiakovalenko illiakovalenko deleted the feature/JSS-4464 branch October 31, 2024 08:34
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