AsyncDataEnvelope
AsyncDataEnvelopes are plain JavaScript objects created in the global state by useAsyncData() and useAsyncCollection() hooks to hold loaded async data and related meta data.
Fields
data
- any - The loaded async data.numRefs
- number - The count of currently mounted components referencing the async data via useAsyncData() and useAsyncCollection() hooks.operationId
- string - A unique ID of the current data loading operation, if one is in progress. Changing this ID before the operation ends effectively cancels it, and instructs related hooks to ignore the operation result.noteServer-side and client-side operation UIDs start with
S
andC
letters respectively. At the client side, if an envelope storesoperationId
starting withS
letter, it is understood as a non-terminated data loading operation during SSR, and it is automatically restarted at the client-side in such case.timestamp
- number - Unix timestamp (in milliseconds) of the most recently loadeddata
payload.