Skip to content

Commit

Permalink
[sitecore-jss] Set FETCH_WITH.REST to 'REST' instead of 'Rest'
Browse files Browse the repository at this point in the history
  • Loading branch information
illiakovalenko committed Sep 12, 2024
1 parent 103e009 commit 906e9eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/upgrades/unreleased.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Unreleased

* `FETCH_WITH.REST` constant string value from '@sitecore-jss/sitecore-jss' package now is set to 'REST' instead of 'Rest'. If you are using this constant in your code, please update it accordingly.

# Angular

* Update the JssContextService and all the references to it, since some of the sitecore-jss-angular components now rely on the application state:
Expand Down
2 changes: 1 addition & 1 deletion packages/sitecore-jss/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export enum SitecoreTemplateId {

export const FETCH_WITH = {
GRAPHQL: 'GraphQL',
REST: 'Rest',
REST: 'REST',
};

export const JSS_MODE = {
Expand Down

0 comments on commit 906e9eb

Please sign in to comment.