JourneyView and calls only the actions available in that view.
Install
Initialize the SDK
sdk.destroy().
Create a journey
Most integrations should render from
view$.
These are reactive readable stores. Use .get() for the current value, and
.listen(...) when your UI needs to update as the journey changes. Always keep
the unsubscribe function and call it when your component, page, or integration
mount point is removed. React integrations usually do not need to subscribe to
these stores directly because useExperienceJourney returns the current view
and snapshot for React rendering.
Render from JourneyView
view.offers (informational, always-gated upgrade routes) and view.submitAccessCode(code) for an in-place upgrade attempt. See Gates and Auth for how this differs from the gated-stage reroute flow.
Render routed sequence states
Resume existing journeys
If the consumer returns to your app with an existing session, resume known journeys before rendering your main experience surface.view$ value after resume completes.
Next steps
- Read Journey State to understand the full state model.
- Read Gates and Auth before implementing authentication or access-code flows.
- Use Core Headless Example for a more complete UI sketch.