Edit this page

up.RenderJob up.RenderJob.prototype.then(onFulfilled, onRejected)
Class 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 network issue.

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


onFulfilled Function(up.RenderResult)
onRejected Function(up.RenderResultorError)

Return value

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