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] [sitecore-jss-nextjs] Pass sc_layoutKind to grapqhl layout request header. #1907

Merged
merged 13 commits into from
Aug 27, 2024

Conversation

addy-pathania
Copy link
Contributor

@addy-pathania addy-pathania commented Aug 26, 2024

Description / Motivation

In order to support shared vs final layout switcher, we need to pass type of layout to CM when render through horizon.

  • Query string param sc_layoutKind extends /editing/render contract.
  • It is of enum type LayoutKind which can have value shared or final
  • Default value is final
  • GraphqlClient's request method now accepts an optional options param to pass dynamic values like headers etc.

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)

@addy-pathania addy-pathania requested a review from a team August 26, 2024 21:43
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@addy-pathania addy-pathania merged commit 20ac215 into dev Aug 27, 2024
1 check passed
@addy-pathania addy-pathania deleted the feature/jss-3978-layout-kind branch August 27, 2024 16:24
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