UseExperienceInput
Properties
Section titled “Properties”context?
Section titled “context?”
optionalcontext?:ContextBag
keepPrevious?
Section titled “keepPrevious?”
optionalkeepPrevious?:boolean
Keep the previous result visible while the next loads (default true), so a navigation doesn’t flash to a loading state.
locale?
Section titled “locale?”
optionallocale?:string
path:
string
The current location’s pathname — from your router (useLocation().pathname), never hard-coded.
optionalsite?:string
optionalskip?: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.