UsePlacementOptions
UsePlacementOptions =
object
Options for the usePlacement hook.
Properties
Section titled “Properties”autoLoad?
Section titled “autoLoad?”
optionalautoLoad?:boolean
Automatically load a decision on mount. Default true.
autoTrackImpression?
Section titled “autoTrackImpression?”
optionalautoTrackImpression?:boolean
Whether a visible decision auto-tracks a resolution-time impression. Default
true. Set false to suppress it — e.g. when you attach UsePlacementResult.exposureRef and want the impression to fire on viewport
exposure instead (plan 144 TASK-9 / REQ-15). Read at mount.
contextMode?
Section titled “contextMode?”
optionalcontextMode?:RevTurbineContextMode
Context resolution mode. Default 'auto'.
overrides?
Section titled “overrides?”
optionaloverrides?:RevTurbinePlacementDecisionOverrides
Override segment, plan, or usage for testing.
placement?
Section titled “placement?”
optionalplacement?:RevTurbinePlacementConfig
Placement configuration (name, scope key, metadata).
placementExposure?
Section titled “placementExposure?”
optionalplacementExposure?:PlacementExposureMode
When the presentation-writing impression fires (plan 144 TASK-11 / REQ-17).
legacy_resolution (default) fires at resolution as today; render at
render; viewport on viewport exposure (falling back to resolution when
IntersectionObserver is unavailable). Only viewport moves the dashboard
denominator — attach UsePlacementResult.exposureRef to the visual
root to use it. Read at mount.
surfaceSlot?
Section titled “surfaceSlot?”
optionalsurfaceSlot?:RevTurbineSurfaceSlotConfig
Canonical surface slot configuration (preferred over placement).
traits?
Section titled “traits?”
optionaltraits?:Record<string,string|number|boolean>
Custom traits to include in the decision request.
ttlMs?
Section titled “ttlMs?”
optionalttlMs?:number
Decision cache TTL in milliseconds.
userId?
Section titled “userId?”
optionaluserId?:string
Target user ID. Falls back to the SDK’s current user context.