Skip to content

Commit

Permalink
feat(experience-builder-sdk)!: make returned experience reactive to p…
Browse files Browse the repository at this point in the history
…rops [] (#161)

BREAKING CHANGES: useFetchExperience now requires mode, experienceTypeId, and localeCode parameters, and takes in either slug or id as optional params, though one of them is required.

You no longer need to use the exported `fetchBySlug` method to manually fetch a slug, though you can still use it if needed.

* feat(experience-builder-sdk)!: make returned experience reactive to props

* chore: typo fixes in test

* chore(experience-builder-sdk): pr feedback

* chore: updating test apps
  • Loading branch information
elylucas authored Dec 18, 2023
1 parent 3729990 commit 02f1739
Show file tree
Hide file tree
Showing 5 changed files with 273 additions and 212 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export const DeprecatedPreviewDeliveryRoot = ({
const { fetchBySlug, experience, isFetching } = useFetchExperience({
client,
mode: mode as ExternalSDKMode,
slug,
experienceTypeId,
localeCode: locale,
});

const entityStore = experience?.entityStore;
Expand Down
Loading

0 comments on commit 02f1739

Please sign in to comment.