Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
Collaborator

@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
Collaborator

@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
Collaborator

@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
Collaborator

@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.

3 participants