Edit this page

up.RenderJob up.RenderJob.prototype.then(onFulfilled, onRejected)
Instance method

An up.RenderJob is also a promise for its completion.

The promise is fulfilled with an up.RenderResult when a fragment was updated from a successful server response.

The promise will reject for responses with a failed HTTP status, when the request is aborted, or when there is a network issue.

See render hooks for examples of awaiting rendering completion and how to handle errors.


Parameters

onFulfilled
required
Function(up.RenderResult)
onRejected
required

Return value

A promise that fulfills with an up.RenderResult once the page has been updated.