Skip to Content
Runlane
ReferenceContract values

React contract values

Attempt retention modes exposed by the React hooks.

Import RunStreamMode from @runlane/react. The React API reference defines reader lifetime and retention bounds.

MemberValue
RunStreamMode.Latestlatest
RunStreamMode.Allall

RunStreamMode.Latest retains only the latest attempt. RunStreamMode.All keeps attempt history within the total part and attempt-entry limits. Each attempt exposes attempt, parts, and an optional RunStreamCloseReason as closeReason.

React uses contractDefaults.realtime.renderThrottle for trailing publishes, clientMaxParts for default part retention, and clientMaxPartsLimit for its ceiling. See defaults for their checked values. Starts and closes do not count as parts, but each attempt entry counts toward the same maxParts limit. The oldest attempts are evicted first, including empty ones; the current attempt is kept. Any eviction sets truncated.