Skip to content

UseExperienceInput

optional context?: ContextBag


optional keepPrevious?: boolean

Keep the previous result visible while the next loads (default true), so a navigation doesn’t flash to a loading state.


optional locale?: string


path: string

The current location’s pathname — from your router (useLocation().pathname), never hard-coded.


optional site?: string


optional skip?: boolean

Don’t resolve anything, and report loading. An explicit opt-out for a caller that knows this resolve cannot be wanted — <EditorEntryCta> uses it inside an activated live preview, where a button offering to open Composer is pointless and its fetch would be the only one left on the page.

Explicit, unlike the internal preview guard below, precisely because it is the caller’s judgement rather than the hook’s.