Type Alias: RequestData

Estimated reading time: less than 1 minute
type RequestData = object

Everything a suspense needs to know about its request lifecycle.

Properties

nextBoundaryId

nextBoundaryId: number

Monotonic sequence used to assign unique boundary marker IDs.


pendingRoot

pendingRoot: boolean

Whether an unresolved root still owns this state.


responseStream

responseStream: PassThrough | undefined

The response stream waiting for an unresolved root.


rid

rid: number | string

The request ID that owns this state.


running

running: number

How many are still running


sent

sent: boolean

If the first suspense has already resolved


stream

stream: Readable

The stream we should write

WeakRef requires ES2021 typings (node 14+) to be installed.